Using JanusGraph with Solr

此生再无相见时 提交于 2019-12-06 08:08:41

The answer to this basically the same as this one for Titan. JanusGraph was forked from Titan.

You are probably trying to connect to an existing graph that was previously configured to use Elasticsearch. By default, the keyspace is named janusgraph.

1) You could connect to a different keyspace by updating conf/janusgraph-cassandra.properties

gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=cassandrathrift
storage.hostname=127.0.0.1
storage.cassandra.keyspace=mygraph

2) You could drop the existing keyspace. If you used bin/janusgraph.sh start from the quick start directions (which starts a single node Cassandra and a single node Elasticsearch),

bin/janusgraph.sh clean

Or if you have a standalone Cassandra installation:

$CASSANDRA_HOME/bin/cqlsh -e 'drop keyspace if exists janusgraph'

Then you would be able to connect with the default conf/janusgraph-cassandra.properties.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!