Graph does not support the provided graph computer: SparkGraphComputer

345 views
Skip to first unread message

Russell Jurney

unread,
Feb 10, 2018, 12:26:05 AM2/10/18
to gremli...@googlegroups.com
I had this code working I thought, but now when I initialize my graph, I get this exception: Graph does not support the provided graph computer: SparkGraphComputer. What do I do? I can't recall how I had this working :/

Is it even possible to load records from Cassandra into JanusGraph in Gremlin and run a Spark operation on them? I swear I did this before, but I can't figure out how I did it now.

The code is:

:plugin use tinkerpop.hadoop
:plugin use tinkerpop.spark

// I edited the keyspace in this file to github_graph
olap_graph = JanusGraphFactory.build().
set("storage.backend", "cassandra").
set("storage.hostname", "127.0.0.1").
set("storage.cassandra.keyspace", "github_graph").
open()

// Get a graph traverser
olap_g = olap_graph.traversal().withComputer(SparkGraphComputer)

// Test things out with a vertex count
// assert(olap_g.V().count().next() == 8139595)

// Add co-forked edges between nodes
edgePairs = olap_g.V().\
hasLabel('repo').\
as('repo1').\
in('forked').\
out('forked').\
where(without('x')).\
as('repo2')

Thanks,

Russell Jurney

unread,
Feb 10, 2018, 12:39:41 AM2/10/18
to gremli...@googlegroups.com
Sorry all! I forgot about the config file at conf/hadoop/read-cassandra.properties. It was what I used. Oh well, this can serve as documentation.

Russell Jurney

unread,
Feb 10, 2018, 1:12:10 AM2/10/18
to gremli...@googlegroups.com
Hmmm well now I've run into this: https://github.com/JanusGraph/janusgraph/pull/297 but I can't figure out how to get it to use cassandra 3...

Russell Jurney

unread,
Feb 10, 2018, 1:16:39 AM2/10/18
to gremli...@googlegroups.com
Oh yeah, had to use Cassandra3InputFormat!
Reply all
Reply to author
Forward
0 new messages