cassandra - GraphFactory message: GraphFactory could not instantiate this Graph implementation [com.thinkaurelius.titan.core.TitanFactory] -
i'm trying make graph queries via gremlin-shell cassandra backend (locally or remotely).
i downloaded stock gremlin server distribution , installed titan (as described here in manual-installation).
http://s3.thinkaurelius.com/docs/titan/0.9.0-m1/server.html
i added property settings , classpath :
~/gremlin-server-3.0.0.m6$ cat conf/titan-cassandra.properties gremlin.graph=com.thinkaurelius.titan.core.titanfactory storage.backend=cassandrathrift storage.directory=../db/cassandra ~/gremlin-server-3.0.0.m6$ cat conf/gremlin-server.yaml host: localhost port: 8182 threadpoolworker: 1 gremlinpool: 8 scriptevaluationtimeout: 30000 serializedresponsetimeout: 30000 channelizer: com.tinkerpop.gremlin.server.channel.websocketchannelizer graphs: { g: conf/titan-cassandra.properties} #g: conf/tinkergraph-empty.properties} plugins: - aurelius.titan
when bring gremlin server, following errors (even though gremlin server comes up) :
bin/gremlin-server.sh [info] gremlinserver - \,,,/ (o o) -----oooo-(3)-oooo----- [info] gremlinserver - configuring gremlin server conf/gremlin-server.yaml [info] metricmanager - configured metrics consolereporter configured report interval=180000ms [info] metricmanager - configured metrics csvreporter configured report interval=180000ms filename=/tmp/gremlin-server-metrics.csv [info] metricmanager - configured metrics jmxreporter configured domain= , agentid= [info] metricmanager - configured metrics slf4jreporter configured interval=180000ms , loggername=com.tinkerpop.gremlin.server.settings$slf4jreportermetrics [warn] graphs - graph [g] configured @ [conf/titan-cassandra.properties] not instantiated , not available in gremlin server. graphfactory message: graphfactory not instantiate graph implementation [com.thinkaurelius.titan.core.titanfactory] java.lang.runtimeexception: graphfactory not instantiate graph implementation [com.thinkaurelius.titan.core.titanfactory] : : [info] gremlinserver - initialized gremlin thread pool. threads in pool named pattern gremlin-* [info] scriptengines - loaded nashorn scriptengine [info] scriptengines - loaded gremlin-groovy scriptengine [info] gremlinserver - initialized gremlinexecutor , configured scriptengines. [info] abstractchannelizer - configured application/vnd.gremlin-v1.0+kryo com.tinkerpop.gremlin.driver.ser.kryomessageserializerv1d0 [info] abstractchannelizer - configured application/vnd.gremlin-v1.0+kryo-stringd com.tinkerpop.gremlin.driver.ser.kryomessageserializerv1d0 [info] abstractchannelizer - configured application/vnd.gremlin-v1.0+json com.tinkerpop.gremlin.driver.ser.jsonmessageserializergremlinv1d0 [info] abstractchannelizer - configured application/json com.tinkerpop.gremlin.driver.ser.jsonmessageserializerv1d0 [info] gremlinserver - gremlin server configured worker thread pool of 1 , boss thread pool of 1 [info] gremlinserver - channel started @ port 8182.
furthermore, when try invoke simple graph operation via gremlin-shell, see following :
bin/gremlin.sh \,,,/ (o o) -----oooo-(3)-oooo----- plugin activated: aurelius.titan plugin activated: tinkerpop.server plugin activated: tinkerpop.utilities slf4j: class path contains multiple slf4j bindings. slf4j: found binding in [jar:file:/home/appsec/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: found binding in [jar:file:/home/appsec/titan-1.0.0-hadoop1/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/staticloggerbinder.class] slf4j: see http://www.slf4j.org/codes.html#multiple_bindings explanation. slf4j: actual binding of type [org.slf4j.impl.log4jloggerfactory] 20:50:02 info org.apache.tinkerpop.gremlin.hadoop.structure.hadoopgraph - hadoop_gremlin_libs set to: /home/appsec/titan-1.0.0-hadoop1/lib plugin activated: tinkerpop.hadoop plugin activated: tinkerpop.tinkergraph gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>connected - localhost/127.0.0.1:8182 gremlin> graphofthegodsfactory.load(graph) no such property: graph class: groovysh_evaluate display stack trace? [yn] y groovy.lang.missingpropertyexception: no such property: graph class: groovysh_evaluate gremlin> graph = titanfactory.open('/home/appsec/gremlin-server-3.0.0.m6/conf/titan-cassandra.properties') not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.thrift.cassandrathriftstoremanager display stack trace? [yn] y java.lang.illegalargumentexception: not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.thrift.cassandrathriftstoremanager : : caused by: java.net.connectexception: connection refused @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.abstractplainsocketimpl.doconnect(abstractplainsocketimpl.java:350) @ java.net.abstractplainsocketimpl.connecttoaddress(abstractplainsocketimpl.java:206) @ java.net.abstractplainsocketimpl.connect(abstractplainsocketimpl.java:188) @ java.net.sockssocketimpl.connect(sockssocketimpl.java:392) @ java.net.socket.connect(socket.java:589) @ org.apache.thrift.transport.tsocket.open(tsocket.java:180) ... 55 more
you should download , use titan 1.0.0, , make sure refer titan 1.0.0 documentation titan server. don't need install gremlin server separately because bundled titan 1.0.0 distribution.
there bug in titan 1.0.0 release has been fixed. can read more on previous stackoverflow question. in short, need update gremlin-server.yaml
point @ new configuration file titan-cassandra-es-server.properties
.
if you're interested in connecting gremlin server titan (rather using server included titan distrubtion), i've listed steps in mailing list post:
# apache tinkerpop's gremlin server (titan 1.0.0 uses tinkerpop 3.0.1) unzip apache-gremlin-server-3.0.1-incubating-bin.zip cd apache-gremlin-server-3.0.1-incubating # install titan-cassandra plugin under ext/titan-cassandra ./bin/gremlin-server.sh -i com.thinkaurelius.titan titan-cassandra 1.0.0 # copy on titan configuration files # https://gist.github.com/pluradj/8437255e831d2b640b6fea4f815a79c5 # * conf/titan-server.yaml # * conf/titan-cassandra.properties # start server titan configuration ./bin/gremlin-server.sh conf/titan-server.yaml
Comments
Post a Comment