|
Re: Unit testing with JanusGraph
Thanks.
I startup JG instance in my local and use this code to connect to it
GryoMapper.Builder builder = GryoMapper.build().addRegistry(JanusGraphIoRegistry.getInstance());
cluster =
Thanks.
I startup JG instance in my local and use this code to connect to it
GryoMapper.Builder builder = GryoMapper.build().addRegistry(JanusGraphIoRegistry.getInstance());
cluster =
|
By
Suny <sahithiy...@...>
·
#722
·
|
|
Re: Unit testing with JanusGraph
Suny, in the original post you wrote about "in-memory database for unit testing and cassandra for the real application data on same janusgraph instance".
I assumed you mean same JG instance for both
Suny, in the original post you wrote about "in-memory database for unit testing and cassandra for the real application data on same janusgraph instance".
I assumed you mean same JG instance for both
|
By
Vladyslav Kosulin <vkos...@...>
·
#720
·
|
|
Re: Unit testing with JanusGraph
Thanks for you response. So I should use 2 instances of JG - One with in-memory backed to perform unit testing and other with cassandra to run functional use cases ?
Thanks for you response. So I should use 2 instances of JG - One with in-memory backed to perform unit testing and other with cassandra to run functional use cases ?
|
By
Suny <sahithiy...@...>
·
#719
·
|
|
Re: Unit testing with JanusGraph
The in-memory database was built for testing - http://docs.janusgraph.org/latest/inmemorystorage.html#_ideal_use_case_2
If it's only the data access layer (e.g. gremlin queries) being tested, I would
The in-memory database was built for testing - http://docs.janusgraph.org/latest/inmemorystorage.html#_ideal_use_case_2
If it's only the data access layer (e.g. gremlin queries) being tested, I would
|
By
Robert Dale <rob...@...>
·
#721
·
|
|
Re: Unit testing with JanusGraph
Oh, and I would always use separate JG instance for testing if it is possible.
Oh, and I would always use separate JG instance for testing if it is possible.
|
By
Vladyslav Kosulin <vkos...@...>
·
#718
·
|
|
Re: Unit testing with JanusGraph
For unit testing you should use mocks otherwise this is not unit testing.
For functional testing I use TinkerGraph as much faster and less resource hungry backend. Janus in-memory should be fine,
For unit testing you should use mocks otherwise this is not unit testing.
For functional testing I use TinkerGraph as much faster and less resource hungry backend. Janus in-memory should be fine,
|
By
Vladyslav Kosulin <vkos...@...>
·
#717
·
|
|
Unit testing with JanusGraph
Hi,
I am using janusgraph with cassandra as backend for my application. If i want to write a unit test to verify saving/retrieving of data, is mocking the only way ?
Can i use in-memory database for
Hi,
I am using janusgraph with cassandra as backend for my application. If i want to write a unit test to verify saving/retrieving of data, is mocking the only way ?
Can i use in-memory database for
|
By
Suny <sahithiy...@...>
·
#716
·
|
|
Re: Gremlin-console unable to connect different keyspace
JanusGraphFactory.open() creates a graph. You need to create a graph traversal source.
graph =
JanusGraphFactory.open() creates a graph. You need to create a graph traversal source.
graph =
|
By
Jason Plurad <plu...@...>
·
#715
·
|
|
Re: How can I load the GraphSON(JSON) to JanusGraph and how about update,delete vertices and edges?
graph.io(IoCore.graphson()).readGraph("data/tinkerpop-crew.json”);
Use this, this is able to load graphson format.
~AnkurG
graph.io(IoCore.graphson()).readGraph("data/tinkerpop-crew.json”);
Use this, this is able to load graphson format.
~AnkurG
|
By
Ankur Goel <ankur...@...>
·
#714
·
|
|
Gremlin-console unable to connect different keyspace
Hi,
I am using embedded janusgraph server (cassandra + ES). have generated two graphs by change following properties in default janusgraph-cassandra-es-server.properties :
Hi,
I am using embedded janusgraph server (cassandra + ES). have generated two graphs by change following properties in default janusgraph-cassandra-es-server.properties :
|
By
Ankur Goel <ankur...@...>
·
#713
·
|
|
Re: org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
Just to update problem got resolved, i was using without:
mgmt.setConsistency(leadidCUniqueIndex, ConsistencyModifier.LOCK);
After removing, this works like charms earlier in adding 300 vertex we
Just to update problem got resolved, i was using without:
mgmt.setConsistency(leadidCUniqueIndex, ConsistencyModifier.LOCK);
After removing, this works like charms earlier in adding 300 vertex we
|
By
Ankur Goel <ankur...@...>
·
#712
·
|
|
Re: org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
It is difficult to help with just a stack trace. Please provide a some more context of the problem, like the graph configuration, the schema definition, and the graph mutation code that is happening
It is difficult to help with just a stack trace. Please provide a some more context of the problem, like the graph configuration, the schema definition, and the graph mutation code that is happening
|
By
Jason Plurad <plu...@...>
·
#711
·
|
|
org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
We are using single node Janusgraph instance with embeded (cassandra and es).
While adding multiple vertex getting following exception:
org.janusgraph.diskstorage.locking.TemporaryLockingException:
We are using single node Janusgraph instance with embeded (cassandra and es).
While adding multiple vertex getting following exception:
org.janusgraph.diskstorage.locking.TemporaryLockingException:
|
By
ankur...@...
·
#710
·
|
|
Re: how to create index using gremlin scala
OK. I got it.
This works:
val javaGraph = JanusGraphFactory.open(conf)
val graph = javaGraph.asScala
javaGraph.openManagement() etc...
Thanks.
OK. I got it.
This works:
val javaGraph = JanusGraphFactory.open(conf)
val graph = javaGraph.asScala
javaGraph.openManagement() etc...
Thanks.
|
By
yair...@...
·
#709
·
|
|
Re: how to create index using gremlin scala
I suspect that, but I couldn't see how I get to the janusgraph api from the ScalaGraph.
This is my code:
val conf = new BaseConfiguration()
conf.setProperty("storage.backend", "cassandra")
I suspect that, but I couldn't see how I get to the janusgraph api from the ScalaGraph.
This is my code:
val conf = new BaseConfiguration()
conf.setProperty("storage.backend", "cassandra")
|
By
yair...@...
·
#708
·
|
|
Re: how to create index using gremlin scala
The janusgraph management API is not part of Tinkerpop, and thus not of gremlin-scala. So, you can just use the janusgraph java API within scala.
Hope this helps, Marc
Op dinsdag 5 september 2017
The janusgraph management API is not part of Tinkerpop, and thus not of gremlin-scala. So, you can just use the janusgraph java API within scala.
Hope this helps, Marc
Op dinsdag 5 september 2017
|
By
HadoopMarc <marc.d...@...>
·
#707
·
|
|
how to create index using gremlin scala
I am using gremlin scala and I can't seem to find the management API so I can create indexes.
Any pointers?
I am using gremlin scala and I can't seem to find the management API so I can create indexes.
Any pointers?
|
By
yair...@...
·
#706
·
|
|
Re: set (ArrayList) property as JSON string
FYI, Solr support for LIST and SET cardinality should be in 0.2.0
FYI, Solr support for LIST and SET cardinality should be in 0.2.0
|
By
Adam Holley <holl...@...>
·
#705
·
|
|
Re: Backup and restore when using Janus via Gremlin server and a Berkley DB backend
Thank's I will get that going in my app.
Thank's I will get that going in my app.
|
By
emeh...@...
·
#703
·
|
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Titan/JanusGraph has been using 2.11 and TinkerPop has been using 2.12 for the last 2 years or so. JanusGraph overrides TinkerPop's version. There is only one copy of jline in either TinkerPop or
Titan/JanusGraph has been using 2.11 and TinkerPop has been using 2.12 for the last 2 years or so. JanusGraph overrides TinkerPop's version. There is only one copy of jline in either TinkerPop or
|
By
Robert Dale <rob...@...>
·
#704
·
|