Re: Using ES for traversal queries ?
Jason Plurad <plu...@...>
is this slow? g.V().has('type',textContains('car')).inE().has('timestamp',eq('')).inV().id() On Friday, September 22, 2017 at 10:07:26 AM UTC-4, Suny wrote:
|
|
Re: ES with JG
Suny <sahithiy...@...>
values are of small size. like strings of length 20. On Friday, September 22, 2017 at 10:03:34 AM UTC-4, Suny wrote:
|
|
Re: janusgraph solr cassandra GraphOfTheGodsFactory
Jason Plurad <plu...@...>
That error indicates the core isn't available. Did you create it with
Are you able to see the core in the Solr UI? http://localhost:8983/solr/#/~cores/janusSolr Were you able to get Graph of the Gods example working with mixed indexes? On Friday, September 22, 2017 at 9:26:35 AM UTC-4, Ankur Goel wrote:
|
|
Re: Using ES for traversal queries ?
Suny <sahithiy...@...>
Thanks. I am dealing with count here. I need the attributes list on those vertices. g.V().has('type',textContains( g.V().has('type',textContains( On Friday, September 22, 2017 at 8:54:54 AM UTC-4, Jason Plurad wrote:
|
|
Re: ES with JG
Suny <sahithiy...@...>
Each vertex has 3-5 attributes on it. On Friday, September 22, 2017 at 9:02:15 AM UTC-4, Jason Plurad wrote:
|
|
Custom type Kryo serializers
simone...@...
I'm running a JanusGraph 0.1 and I need to set a custom class as attribute type.
I defined the following Janus serializer
and then added the references in the janus-cassandra-es.properties file (I already defined the serializers for arrays and linkedmaps)
Restarting the graph I was able to create new attributes of type MyClass using the console and I was able to perform some queries, too (ex. order by and filter)
Problems came out performing query from my app (trying both gremlin driver and java GVL). I wrote the Kyro serializer, too
then I specified it in my gremlin-server.yaml
Running the same query (the one sorting the nodes by attr4) using the driver, the gremlin-server log reported that the new class is not registered.
Am I missing some configuration? |
|
PageRank on Large Graph
Joe Obernberger <joseph.o...@...>
Hi All - I've been experimenting with SparkGraphComputer, and have it working, but I'm having performance issues. What is the best way to run PageRank against a very large graph stored inside of JanusGraph?
Thank you! -Joe |
|
Re: janusgraph solr cassandra GraphOfTheGodsFactory
Ankur Goel <ankur...@...>
Hi I am using the same configuration and have created core with name janusSolr for mixed index, when adding a vertex, getting below error: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/> <title>Error 404 Not Found</title> </head> <body><h2>HTTP ERROR 404</h2> <p>Problem accessing /solr/janusSolr/update. Reason: <pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> i checked following URL are working: http://localhost:8983/solr/janusSolr/select http://localhost:8983/solr/janusSolr/query but http://localhost:8983/solr/janusSolr/update is throwing 404. I am no solr expert, any advise? ~AnkurG
On Saturday, July 8, 2017 at 8:41:04 AM UTC+5:30, mahendiran chandrasekar wrote:
|
|
Re: Janus Solr configuration
Jason Plurad <plu...@...>
If you have a standalone Cassandra install, you can use cqlsh to drop the keyspace. For example, if you're using the default keyspace name:
If you are using Cassandra in the pre-packaged distribution, you can use the clean command on janusgraph.sh
As you've noticed, Solr 4.3 is not a supported version. You'd be best off the with latest 5.z version. On Friday, September 22, 2017 at 8:27:04 AM UTC-4, Ankur Goel wrote:
|
|
Re: janusgraph solr cassandra GraphOfTheGodsFactory
Jason Plurad <plu...@...>
With Solr HTTP, there's no Zookeeper involved that can keep track of a shared configuration. You need to create each core manually.
where "vertices" and "edges" match the names of the mixed indexes in the schema definition On Friday, September 22, 2017 at 8:14:30 AM UTC-4, Ankur Goel wrote:
|
|
Re: Creating a janusgraph cluster
Jason Plurad <plu...@...>
Correct, the coordination is achieved through the underlying storage backend. Documentation on the engine internals is pretty sparse. This is an old reference, but has some decent pointers. https://github.com/BillBaird/delftswa-aurelius-titan On Thursday, September 21, 2017 at 10:40:02 PM UTC-4, Dilan Ranasinghe wrote:
|
|
Re: ES with JG
Jason Plurad <plu...@...>
1500 vertices is a fair amount, but how much data is getting returned in the valueMap? Is there a large number of properties in the map or perhaps are the values very large? Very easily could be the cost of serializing that map. In another post you were asking about string size restrictions... On Thursday, September 21, 2017 at 2:40:06 PM UTC-4, Suny wrote:
|
|
Re: Using ES for traversal queries ?
Jason Plurad <plu...@...>
No, explain() doesn't give any clear indication currently whether an index will be utilized. I opened up an issue for that. What counts are you dealing with here? g.V().has('type',textContains( g.V().has('type',textContains( g.V().has('type',textContains( On Thursday, September 21, 2017 at 1:59:37 PM UTC-4, Suny wrote:
|
|
Re: Janus Solr configuration
Ankur Goel <ankur...@...>
Problem resolved: default global value is Cloud, after clearing cassandra it works. Now when using following: graph.close(); JanusGraphCleanup.clear(graph); it is throwing below error, please help: 2017-09-22 17:54:06,739 ERROR [main] org.janusgraph.diskstorage.solr.SolrIndex: Unable to clear storage from index due to general error. java.lang.UnsupportedOperationException: Operation only supported for SolrCloud at org.janusgraph.diskstorage.solr.SolrIndex.clearStorage(SolrIndex.java:741) at org.janusgraph.diskstorage.Backend.clearStorage(Backend.java:593) at org.janusgraph.core.util.JanusGraphCleanup$1.call(JanusGraphCleanup.java:51) at org.janusgraph.core.util.JanusGraphCleanup$1.call(JanusGraphCleanup.java:48) at org.janusgraph.diskstorage.util.BackendOperation.executeDirect(BackendOperation.java:69) at org.janusgraph.diskstorage.util.BackendOperation.execute(BackendOperation.java:55)
at org.janusgraph.core.util.JanusGraphCleanup.clear(JanusGraphCleanup.java:48) is there any other way to clear graph. ~AnkurG On Friday, September 22, 2017 at 5:42:18 PM UTC+5:30, Ankur Goel wrote:
|
|
Re: janusgraph solr cassandra GraphOfTheGodsFactory
Ankur Goel <ankur...@...>
what about if you are not using solr cloud. On Saturday, July 8, 2017 at 8:41:04 AM UTC+5:30, mahendiran chandrasekar wrote:
|
|
Janus Solr configuration
Ankur Goel <ankur...@...>
Hi, @ link http://docs.janusgraph.org/latest/solr.html and solr configuration provided with Janus looks supporting only Solr 5.X. I am using Solr 4.3, do we have any config to support that. My solr config: index.search.backend=solr index.search.solr.mode=http index.search.solr.http-urls=http://localhost:8983/solr Getting exception: 2017-09-22 17:38:12,819 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-09-22 17:38:12,920 WARN [main-SendThread(localhost:2181)] org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) 2017-09-22 17:38:14,133 ERROR [main] com.test.ankur.janusgraph.mains.JanusGraphMain: Exception ===java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.solr.SolrIndex
In http mode why it is trying to connect zookeeper. ~AnkurG |
|
Re: janusgraph with HBase
Ajay Srivastava <Ajay.Sr...@...>
Marc,
I checked gremlin.sh to see how classpath was passed to it. I formed classpath in similar way and the problem got resolved.
Thanks.
Regards,
Ajay
|
|
Re: Creating a janusgraph cluster
Dilan Ranasinghe <dila...@...>
Thanks. There is a confusion for me with your explanation and the section http://docs.janusgraph.org/0.1.0/failure-recovery.html#_janusgraph_instance_failure . There it says "However, some schema related operations - such as installing indexes - require the coordination of all JanusGraph instances". If servers don't communicate with each other, is this coordination is achieved through the underline back-end (hBase)? Dilan. On Friday, September 22, 2017 at 1:52:23 AM UTC+8, Robert Dale wrote:
|
|
Re: janusgraph with HBase
Ajay Srivastava <Ajay.Sr...@...>
Hi Marc,
toggle quoted message
Show quoted text
If I remove hbase lib jars then hbase gets higher version of guava (guava-20) and I get following error in both of these cases, with and without base conflict in path -
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/janusgraph-0.1.1-hadoop2/lib/*:/root/hbase-1.2.4/conf/*
janusSchema.scala
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/janusgraph-0.1.1-hadoop2/lib/*
janusSchema.scala
Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.hbase.zookeeper.MetaTableLocator
at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:604)
at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:588)
at org.apache.hadoop.hbase.zookeeper.MetaTableLocator.blockUntilAvailable(MetaTableLocator.java:561)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getMetaRegionLocation(ZooKeeperRegistry.java:61)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateMeta(ConnectionManager.java:1211)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1178)
at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:305)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:156)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:210)
... 53 more
Regards,
Ajay
|
|
Re: Janus Graph GUI
Misha Brukman <mbru...@...>
[ cc: janusgraph-users, bcc: janusgraph-dev ] This is a question better suited for the janusgraph-users@ list as it is talking about external integrations rather than internals of JanusGraph itself. Please see this earlier similar thread with answers. On Thu, Sep 21, 2017 at 2:54 AM, sankeeta kamath <sankee...@...> wrote:
|
|