janusgraph with HBase
Ajay Srivastava <Ajay.Sr...@...>
Hi,
Anyone is running janusgraph with Hbase ?
I am trying to create graph schema and getting error because of conflicting guava jars in janusgraph and Hbase.
scala -classpath /root/dev/External_jars/gremlin-core-3.2.5.jar:/root/dev/External_jars/gremlin-scala_2.11-3.2.4.12.jar:/root/dev/External_jars/shapeless_2.11-2.3.2.jar:/root/hbase-1.2.4/lib/*:/root/janusgraph-0.1.1-hadoop2/lib/*
graphSchema.scala
java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;
Any idea, how can I resolve this problem ?
Regards,
Ajay
|
|
Re: Using ES for traversal queries ?
Daniel Kuppitz <me@...>
Only in the underlying storage backend. Cheers, Daniel On Thu, Sep 21, 2017 at 7:57 AM, Suny <sahithiy...@...> wrote:
|
|
Re: Using ES for traversal queries ?
Suny <sahithiy...@...>
Thanks. Is the vertex-centric index not stored in Elastic search. Is it only in JG ? On Thursday, September 21, 2017 at 10:28:47 AM UTC-4, Daniel Kuppitz wrote:
|
|
Re: Using ES for traversal queries ?
Daniel Kuppitz <me@...>
Thanks, All the in edges will have same label. Does it still traverse through all edges or directly find the edges with empty timestamp ? I assume that Janus can only leverage a vertex centric index, if you specify the label, since that was the case in Titan and I don't think I heard about any changes in this area. So in cases where i need to do lot of traversal, ES is not helpful ? Again, ES is helpful for the initial vertex lookup. Once you start to traverse through the graph, you can only rely on vertex centric indices (or a good model that doesn't require much filtering). Also can you explain a bit more on OLAP query You can read up on OLAP here: http://docs.janusgraph.org/0.2.0-SNAPSHOT/hadoop-tp3.html Cheers, Daniel On Thu, Sep 21, 2017 at 7:07 AM, Suny <sahithiy...@...> wrote:
|
|
Re: Using ES for traversal queries ?
Suny <sahithiy...@...>
Thanks, All the in edges will have same label. Does it still traverse through all edges or directly find the edges with empty timestamp ? So in cases where i need to do lot of traversal, ES is not helpful ? Also can you explain a bit more on OLAP query On Wednesday, September 20, 2017 at 2:35:27 PM UTC-4, Daniel Kuppitz wrote:
|
|
Re: Creating a janusgraph cluster
Ankur Goel <ankur...@...>
Best is create cassandra cluster + Solr/ES cluster individualy. Connect JanusGraph instance to respective cassandra/ES/Solr cluster. I am not sure how to have multiple instances of Janus Server. Right now i am using single instance of Janus Server. ~AnkurG On Wednesday, September 20, 2017 at 3:35:18 PM UTC+5:30, Dilan Ranasinghe wrote:
|
|
Re: How can I load the GraphSON(JSON) to JanusGraph and how about update,delete vertices and edges?
sankeeta kamath <sankee...@...>
On Monday, August 7, 2017 at 9:01:35 AM UTC-7, hu junjie wrote:
You can use import groovy.json.* |
|
JanusGraph using Jena API
Sreekanth S <sreeka...@...>
Hi, I am new to JanusGraph and I am trying out one scenario, that is using Jena API(It is a Java API used to read RDF/OWL file as triple store and query the same using SPARQL. Ref:https://jena.apache.org/). I am trying to read RDF/OWL file and then to load the same into JanusGraph. Is that possible? or JanusGraph have its own capability to load RDF/OWL file and create a JanusGraph? Thanks in advance, Sreekanth S |
|
Re: Using ES for traversal queries ?
Daniel Kuppitz <me@...>
You should
Something like this:
If you expect very large results, you'd be better off using an OLAP query. Can I make JG to use ES for traversal too ? ES is only useful for initial / global vertex lookups. Cheers, Daniel On Wed, Sep 20, 2017 at 7:41 AM, Suny <sahithiy...@...> wrote:
|
|
Using ES for traversal queries ?
Suny <sahithiy...@...>
Hi, I am using JG with Cassandra and ES. I have a type attribute on all vertices based on which i can differentiate group of vertices. The query i want to do is :> g.V().has('type',textContains('car')).inE().has('timestamp','').inV().valueMap() I created an index on type attribute. If I just query for :> g.V().has('type',textContains('car')) it is coming back very fast with result. If I add the traversal part it is slowing down. So, JG is using ES to retrieve the vertices of type 'car' and then for traversal it is using just JG. Can I make JG to use ES for traversal too ? If i add index on edge attribute 'timestamp', does this fasten the query ? Thanks |
|
Creating a janusgraph cluster
Dilan Ranasinghe <dila...@...>
Hello, I'm currently struggling in creating a Janusgraph cluster. I read the official documents and i'm not clear yet how a cluster is created. As i understood, most of the documents refer to the hbase or Cassandra cluster as the janusgraph cluster. My problem is how can we create a janusgraph/gremlin server cluster? 1) Do i only need to run janusgraph/gremlin servers in the same network so that they will create a cluster automatically? 2) Or is there a way to configure a cluster so that janusgraph instances will communicate with each other? 3) If there is no communication between the janusgraph/gremlin servers can't there be any transaction issues? For example one server adding a new node to a graph and at the same time another server is also adding a node which will make an inconsistency. Thanks and regards, Dilan. |
|
Re: Dynamic edge creation
Ankur Goel <ankur...@...>
Thnx Robert, it helped big time. On Friday, September 15, 2017 at 3:02:46 PM UTC+5:30, Ankur Goel wrote:
|
|
Re: Elastic search 5.5.1 with Janusgraph
Jerry He <jerr...@...>
On the stack trace, you are hitting https://github.com/JanusGraph/janusgraph/issues/488 Thanks. Jerry On Monday, September 18, 2017 at 10:48:11 PM UTC-7, guan wang wrote:
|
|
Re: Getting TemporaryLockingException: No lock columns found for KeyColumn for mgmt.commit()
Suny <sahithiy...@...>
Were you able to resolve this issue ? On Thursday, August 31, 2017 at 9:18:40 AM UTC-4, pad...@... wrote:
|
|
Limit on size of strings in Janusgraph
Suny <sahithiy...@...>
Is there any limit on size of strings in Janusgraph ? (Using String datatype) |
|
Re: unique index per label
stan...@...
Hi,Robert. I want to index all my vertex.But it seems to slow. Is there any resolvent? 在 2017年9月12日星期二 UTC+8上午12:35:10,Robert Dale写道:
|
|
Re: Elastic search 5.5.1 with Janusgraph
guan wang <gyw...@...>
Thank you Jerry. Yes, it was classpath problem. After fixed it. Now I have different error. solr/zookeeper connection is fine, the collections are automatically created after, but the index is empty. 22:36:37.548 [main] DEBUG o.j.d.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\x00, \xFF) Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.elapsedTime(Ljava/util/concurrent/TimeUnit;)J at com.google.common.cache.LocalCache$LoadingValueReference.elapsedNanos(LocalCache.java:3600) at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2407) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2373) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2335) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2250) at com.google.common.cache.LocalCache.get(LocalCache.java:3985) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4788) at org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache.get(GuavaVertexCache.java:83) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.getInternalVertex(StandardJanusGraphTx.java:446) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx$7.apply(StandardJanusGraphTx.java:1329) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx$7.apply(StandardJanusGraphTx.java:1324) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) at java.util.stream.SliceOps$1$1.accept(SliceOps.java:204) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1351) at java.util.stream.StreamSpliterators$WrappingSpliterator.lambda$initPartialTraversalState$0(StreamSpliterators.java:294) at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.fillBuffer(StreamSpliterators.java:206) at java.util.stream.StreamSpliterators$AbstractWrappingSpliterator.doAdvance(StreamSpliterators.java:161) at java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:300) at java.util.Spliterators$1Adapter.hasNext(Spliterators.java:681) at org.janusgraph.graphdb.util.SubqueryIterator.hasNext(SubqueryIterator.java:79) at org.janusgraph.graphdb.query.LimitAdjustingIterator.hasNext(LimitAdjustingIterator.java:70) at org.janusgraph.graphdb.query.ResultSetIterator.nextInternal(ResultSetIterator.java:54) at org.janusgraph.graphdb.query.ResultSetIterator.<init>(ResultSetIterator.java:44) at org.janusgraph.graphdb.query.QueryProcessor.iterator(QueryProcessor.java:68) at com.google.common.collect.Iterables$7.iterator(Iterables.java:613) at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:284) at org.janusgraph.graphdb.database.StandardJanusGraph$1.retrieveSchemaByName(StandardJanusGraph.java:361) at org.janusgraph.graphdb.database.cache.StandardSchemaCache.getSchemaId(StandardSchemaCache.java:112) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.getSchemaVertex(StandardJanusGraphTx.java:878) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.getVertexLabel(StandardJanusGraphTx.java:1005) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.getOrCreateVertexLabel(StandardJanusGraphTx.java:1010) at org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsTransaction.addVertex(JanusGraphBlueprintsTransaction.java:119) at org.janusgraph.example.GraphOfTheGodsFactory.load(GraphOfTheGodsFactory.java:117) at org.janusgraph.example.GraphOfTheGodsFactory.load(GraphOfTheGodsFactory.java:66) at com.sysomos.labs.janusgraph.JavaExample.main(JavaExample.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) 22:36:38.264 [main-SendThread(alzk01.lab.dev.yyz.corp.pvt:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Got ping response for sessionid: 0x15790982d05010f after 82ms 22:36:41.391 [pool-6-thread-1] DEBUG o.j.d.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00\x05Y\x84>\x17\x0F\x18, \x00\x05Y\x84>W\x0A\x00), ColumnPaginationFilter On Sun, 17 Sep 2017 at 15:02 Jerry He <jerr...@...> wrote: Looks like you are missing janusgraph-solr jar in your classpath. |
|
Re: Fetching TTL for individual graph vertices
Jerry He <jerr...@...>
Hi, Sankar You raised a good question. If you use the management API to get Edge Label (or any types) TTL, you will get the configured fixed TTL value. But if you try to retrieve the individual TTLs on the individual edges, you MAY get the 'remaining time' as you would want it. JanusGraph simply returns what it gets from the Cassandra backend. From the CQL documentation, it does seem that Cassandra returns the 'remaining time'. Please try it out with the driver you use. Thanks, Jerry On Sunday, September 17, 2017 at 11:20:06 PM UTC-7, Sankar Sangili wrote:
|
|
Re: Dynamic edge creation
Robert Dale <rob...@...>
On Monday, September 18, 2017 at 6:21:59 AM UTC-4, Robert Dale wrote:
|
|
Re: Dynamic edge creation
Robert Dale <rob...@...>
If `l1` is `p1` then yes, this will create an edge from every player p1 to every player p2. You're not filtering anything out so all players show up in both `V().hasLabel('player')`. If you want to filter out `self` and `has existing 'sameTeam' edge, try this: g.V().hasLabel('player').as('p1').V().hasLabel('player').where(neq('p1')).where(eq('p1')).by('teamName') Robert Dale On Mon, Sep 18, 2017 at 1:58 AM, Ankur Goel <ankur...@...> wrote:
|
|