[英]Connecting to cassandra with titan
我是泰坦的新人。 我想在cassandra數據庫中使用titan。 但是當我啟動gremlin服務器並嘗試使用命令加載圖形時-
graph = TitanFactory.open("conf/titan-cassandra.properties")
它給了我以下錯誤-
Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
我不想使用彈性搜索。 誰能幫忙。
您可能正在嘗試連接到先前配置為使用Elasticsearch的現有圖形。 默認情況下,鍵空間名為titan
。
1)您可以通過更新conf/titan-cassandra.properties
連接到其他密鑰空間
gremlin.graph=com.thinkaurelius.titan.core.TitanFactory
storage.backend=cassandrathrift
storage.hostname=127.0.0.1
storage.cassandra.keyspace=mygraph
2)您可以刪除現有的鍵空間。 如果您使用bin/titan.sh start
從快速bin/titan.sh start
(它將啟動單個節點Cassandra和單個節點Elasticsearch),
cd $TITAN_HOME
bin/titan.sh stop
rm -rf db/* logs/*
bin/titan.sh start
或者,如果您有獨立的Cassandra安裝:
cd $CASSANDRA_HOME
bin/cqlsh -e 'drop keyspace if exists titan'
然后,您將可以使用默認的conf/titan-cassandra.properties
進行連接。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.