To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/a9b5018a-809e-4f08-a522-3f75c89468c5%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "JanusGraph users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/janusgraph-users/cWAasFVmgS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/37289067-a0b1-43d5-a713-bbb0d3f2c639%40googlegroups.com.To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "JanusGraph users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/janusgraph-users/cWAasFVmgS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/236434f4-8bee-4f4e-88fb-8cca059dac37%40googlegroups.com.
Check if thrift is enable on Cassandra, graph computer use thrift for communication.~
On Wed, Dec 13, 2017 at 5:07 PM, Himanshu Gupta <techie...@gmail.com> wrote:
no ankur
On Monday, December 4, 2017 at 8:07:28 PM UTC+5:30, Ankur Goel wrote:Himanshu,are you able to solve this?~
On Friday, November 3, 2017 at 12:43:03 PM UTC+5:30, Himanshu Gupta wrote:Hi Ted,yes I'm able to connect cqlsh even I can see janusgraph keyspace in list. Problem is when I'm using normal cassandra configuration i can do all query, but when I try with hadoop read-cassandra-3.properties it is giving exception.In JanusGraph Documentation I saw they are doing bulk loading graph into cassandra and they are getting output
--
You received this message because you are subscribed to a topic in the Google Groups "JanusGraph users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/janusgraph-users/cWAasFVmgS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to janusgraph-use...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/7e6b2213-9c4e-4b70-bcc4-e1408dcd42cf%40googlegroups.com.
No Debasish still I'm facing same issue I tried with different cassandra version but still facing same error .... What could be the reason for this error?
--
You received this message because you are subscribed to a topic in the Google Groups "JanusGraph users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/janusgraph-users/cWAasFVmgS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/17bf034f-4d32-4391-bdc8-836ba62a756d%40googlegroups.com.
## Hadoop Graph Configuration#gremlin.graph=org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph
gremlin.hadoop.graphInputFormat=org.janusgraph.hadoop.formats.cassandra.Cassandra3InputFormat
gremlin.hadoop.graphOutputFormat=org.apache.tinkerpop.gremlin.hadoop.structure.io.gryo.GryoOutputFormatgremlin.hadoop.jarsInDistributedCache=truegremlin.hadoop.inputLocation=nonegremlin.hadoop.outputLocation=output## JanusGraph Cassandra InputFormat configuration#
janusgraphmr.ioformat.conf.storage.backend=cassandrathriftjanusgraphmr.ioformat.conf.storage.hostname=****.****.****.****janusgraphmr.ioformat.conf.storage.port=9160janusgraphmr.ioformat.conf.storage.cassandra.keyspace=testdb
## Apache Cassandra InputFormat configuration#cassandra.input.partitioner.class=org.apache.cassandra.dht.Murmur3Partitioner
## SparkGraphComputer Configuration#spark.master=local[4]spark.serializer=org.apache.spark.serializer.KryoSerializer
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/5064bac2-c67a-46ec-8af2-72aa83ef835a%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-users+unsubscribe@googlegroups.com.
Add this:
janusgraphmr.ioformat.conf.storage.backend=cassandra
spark.serializer=org.apache.tinkerpop.gremlin.spark.structure.io.gryo.GryoSerializer
Enable thrift.
Java programme:
Graph graph = GraphFactory.open("conf/hadoop-graph/read-cassandra-3.properties");
GraphTraversalSource g = graph.traversal().withComputer(SparkGraphComputer.class);
System.out.println(g.V().count().next());
Try it should work.
~AnkurG
--
You received this message because you are subscribed to a topic in the Google Groups "JanusGraph users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/janusgraph-users/cWAasFVmgS8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to janusgraph-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/7e8736ff-4012-4501-9644-79c9db6d8664%40googlegroups.com.
docker run -d -p 7001:7001 -p 7199:7199 -p 9042:9042 -p 9160:9160 -v /<test_dir>/cass:/var/lib/cassandra -e CASSANDRA_START_RPC=true --name cass cassandradocker exec -it cass nodetool enablethrift#
# Hadoop Graph Configuration
#
gremlin.graph=org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph
gremlin.hadoop.graphInputFormat=org.janusgraph.hadoop.formats.cassandra.Cassandra3InputFormat
gremlin.hadoop.graphOutputFormat=org.apache.tinkerpop.gremlin.hadoop.structure.io.gryo.GryoOutputFormat
gremlin.hadoop.jarsInDistributedCache=true
gremlin.hadoop.inputLocation=none
gremlin.hadoop.outputLocation=output
#
# JanusGraph Cassandra InputFormat configuration
#
janusgraphmr.ioformat.conf.storage.backend=cassandra
janusgraphmr.ioformat.conf.storage.hostname=localhost
janusgraphmr.ioformat.conf.storage.port=9160
janusgraphmr.ioformat.conf.storage.cassandra.keyspace=janusgraph
#
# Apache Cassandra InputFormat configuration
#
cassandra.input.partitioner.class=org.apache.cassandra.dht.Murmur3Partitioner
#
# SparkGraphComputer Configuration
#
spark.master=local[*]
spark.serializer=org.apache.spark.serializer.KryoSerializer
plugin activated: janusgraph.imports
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/<test_dir>/janusgraph-0.2.0-hadoop2/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/<test_dir>/janusgraph-0.2.0-hadoop2/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
22:38:25 WARN org.apache.hadoop.util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.spark
plugin activated: tinkerpop.tinkergraph
gremlin> graph = JanusGraphFactory.open('conf/janusgraph-cassandra.properties')
==>standardjanusgraph[cassandrathrift:[127.0.0.1]]
gremlin> g = graph.traversal()
==>graphtraversalsource[standardjanusgraph[cassandrathrift:[127.0.0.1]], standard]
gremlin> g.V().count()
22:42:22 WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [()]. For better performance, use indexes
==>443136
gremlin> graph = GraphFactory.open('conf/hadoop-graph/read-cassandra-3.properties')
==>hadoopgraph[cassandra3inputformat->gryooutputformat]
gremlin> g = graph.traversal().withComputer(SparkGraphComputer)
==>graphtraversalsource[hadoopgraph[cassandra3inputformat->gryooutputformat], sparkgraphcomputer]
gremlin> g.V().count()
java.io.IOException: Could not get input splits
Type ':help' or ':h' for help.
Display stack trace? [yN]y
java.lang.IllegalStateException: java.io.IOException: Could not get input splits
at org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.VertexProgramStep.processNextStart(VertexProgramStep.java:88)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:50)
at org.apache.tinkerpop.gremlin.process.computer.traversal.step.map.ComputerResultStep.processNextStart(ComputerResultStep.java:68)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:143)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:192)
at org.apache.tinkerpop.gremlin.console.Console$_closure3.doCall(Console.groovy:234)
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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at org.codehaus.groovy.tools.shell.Groovysh.setLastResult(Groovysh.groovy:447)
at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:191)
... 54 more
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.util.concurrent.ExecutionException: java.io.IOException: failed connecting to all endpoints 172.17.0.2
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSplits(AbstractColumnFamilyInputFormat.java:199)
... 52 more
Caused by: java.io.IOException: failed connecting to all endpoints 172.17.0.2
at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.getSubSplits(AbstractColumnFamilyInputFormat.java:317)
at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat.access$200(AbstractColumnFamilyInputFormat.java:61)
at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat$SplitCallable.call(AbstractColumnFamilyInputFormat.java:236)
at org.apache.cassandra.hadoop.AbstractColumnFamilyInputFormat$SplitCallable.call(AbstractColumnFamilyInputFormat.java:221)
... 4 more
Hi,I am using Janus 0.1.1 with Cassandra 3.0.14 as a backend. Can anyone help me how to traverse graph using Spark with Canssandra as a backend ? Can you specify the configurations?current I'm using following configuration file: read-cassandra.properties--------------------------------------------------------------------------------
## Hadoop Graph Configuration#gremlin.graph=org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph
gremlin.hadoop.graphInputFormat=org.janusgraph.hadoop.formats.cassandra.CassandraInputFormat
gremlin.hadoop.graphOutputFormat=org.apache.tinkerpop.gremlin.hadoop.structure.io.gryo.GryoOutputFormatgremlin.hadoop.jarsInDistributedCache=truegremlin.hadoop.inputLocation=nonegremlin.hadoop.outputLocation=output## JanusGraph Cassandra InputFormat configuration#
janusgraphmr.ioformat.conf.storage.backend=cassandrajanusgraphmr.ioformat.conf.storage.hostname=localhostjanusgraphmr.ioformat.conf.storage.port=9160janusgraphmr.ioformat.conf.storage.cassandra.keyspace=janusgraphjanusgraphmr.ioformat.cf-name=edgestorestorage.backend=cassandra
## Apache Cassandra InputFormat configuration#cassandra.input.partitioner.class=org.apache.cassandra.dht.Murmur3Partitioner
spark.driver.host=localhost
## SparkGraphComputer Configuration#spark.master=local[4]spark.serializer=org.apache.spark.serializer.KryoSerializer
--------------------------------------------------------------------------------I do following operations:gremlin> graph = GraphFactory.open("conf/hadoop-graph/read-cassandra.properties")
==>hadoopgraph[cassandrainputformat->gryooutputformat]gremlin> g = graph.traversal().withComputer(SparkGraphComputer)==>graphtraversalsource[hadoopgraph[cassandrainputformat->gryooutputformat], sparkgraphcomputer]
gremlin> g.V().count()java.io.IOException: Could not get input splits