javaでブループリントAPIを使用して、タイタン(カサンドラバックエンド)にデータを追加しました。データを挿入するためにJavaで次の構成を使用しました。
TitanGraph getTitanGraph()
{
conf2 = new BaseConfiguration();
conf2.setProperty("storage.backend", "cassandra");
conf2.setProperty("storage.directory","/some/directory");
conf2.setProperty("storage.read-only", "false");
conf2.setProperty("attributes.allow-all", true);
return TitanFactory.open(conf2);
}
現在、gremlin を使用してそのデータベースにクエリを実行しようとしています。次のコマンドを使用してロードしました
g = TitanFactory.open("bin/cassandra.local");
以下は私のcassandra.localファイルです
conf = new BaseConfiguration();
conf.setProperty("storage.backend","cassandra");
conf.setProperty("storage.hostname","127.0.0.1");
conf.setProperty("storage.read-only", "false");
conf.setProperty("attributes.allow-all", true)
しかし、「gV」を実行していると、空のグラフが表示されます。助けてください
ありがとう