无法在嵌入模式下使用Cassandra启动TitanGraph

时间:2014-06-27 13:59:52

标签: java titan

我在Java项目中使用它;我能够使用BerkeleyDB作为内存数据库开始使用TitanGraph进行广告工作。由于它的许可,我开始使用Apachec Cassandra。它在独立模式下工作。但是,尝试在emebedded模式下运行它会引发此错误

      Configuration conf = new BaseConfiguration();
    //conf.setProperty("storage.backend","cassandra");
    //conf.setProperty("storage.hostname","127.0.0.1");-->Works
    conf.setProperty("storage.backend","embeddedcassandra");
    conf.setProperty("storage.cassandra-config-dir","file://d:/Program_Files/apache-cassandra-2.0.8/conf/cassandra.yaml");
    //conf.setProperty("storage.setup-time",100);//Currenlty a bug to run Cassendra Emndedded ??
    conf.setProperty("ids.block-size",1000000);
    //conf.setProperty("storage.batch-loading",true);
    conf.setProperty("storage.buffer-size",1024);
    conf.setProperty("autotype","none");
    graph = TitanFactory.open(conf);

即将发生的错误

Cannot locate ./conf/cassandra.yaml

致命配置错误;无法开始。请参阅logtra for stacktrace。

0 个答案:

没有答案