【发布时间】:2015-11-11 07:36:56
【问题描述】:
我使用带有 java 的 blueprint api 在 Titan(cassandra 后端) 中添加了数据。我在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 查询该数据库。我使用以下 cmd 加载它
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)
但是当我运行“g.V”时,我得到的是空图。请帮忙
谢谢
【问题讨论】:
标签: cassandra titan gremlin tinkerpop-blueprint