2017-07-19 5 views
0

私はtitanを初めて使っています。私はcassandraデータベースでtitanを使用したい。私はグレムリンサーバを起動し、コマンドを使用してグラフをロードしようとする。しかし - 私は弾性検索を使用したくないtitanでcassandraに接続

Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex 

-

graph = TitanFactory.open("conf/titan-cassandra.properties") 

それは私に、次のエラーが発生します。誰も助けることができます。

答えて

1

おそらく、以前に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を更新することによって、異なる鍵空間に接続することができました。

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

その後、あなたは次のようになります。あなたは(単一ノードカサンドラと単一ノードElasticsearchを開始します)クイックスタート方向からbin/titan.sh start

cd $TITAN_HOME 
bin/titan.sh stop 
rm -rf db/* logs/* 
bin/titan.sh start 

それとも、スタンドアロンカサンドラのインストールを持っている場合を使用した場合デフォルトのconf/titan-cassandra.propertiesと接続することができます。

関連する問題