2014-04-24 42 views
2

我试图设置Rexster(版本2.5)与OrientDB(1.7 rc2)一起使用。问题是我不知道我应该在图形配置中的<graph-type>字段中放置什么。最新的Rexster文档(https://github.com/tinkerpop/rexster/wiki/Specific-Graph-Configurations)声明OrientDB支持已从软件包中删除,因此必须从OrientDB分发版中复制orientdb-client和orientdb-enterprise jar。Rexter OrientDB配置

这就是我所做的。然后,我设置了<graph>部分如下:

<graph>                           
    <graph-enabled>true</graph-enabled>                   
    <graph-name>test</graph-name>                    
    <graph-type>com.tinkerpop.blueprints.impls.orient.OrientGraphRexsterConfiguration</graph-type>        
    <graph-location>local:orientdb/databases/test</graph-location>       
    <extensions>                        
    <allows>                        
     <allow>tp:gremlin</allow>                   
    </allows> 
    </extensions>                        
</graph> 

我得到java.lang.ClassNotFoundException: com.tinkerpop.blueprints.impls.orient.OrientGraphRexsterConfiguration在Rexster启动。

我也试过设置Rexster 2.1,当orientgraph用于<graph-type>(根据https://code.google.com/p/orient/wiki/Rexster)时,它工作得很好。这种方法2.5失败。我觉得我一定会错过一些明显的东西。有人可以指出解决方案吗?

谢谢!

回答

4

看起来像我没有得到正确的文件。该<graph-type>应该是:

com.tinkerpop.rexster.OrientGraphConfiguration 

你可以看到这里的类:

https://github.com/orientechnologies/orientdb/blob/develop/graphdb/src/main/java/com/tinkerpop/rexster/OrientGraphConfiguration.java

我已经纠正的文件。由于班级仍在develop分支,我不确定它是否已经发布。我知道Luca会跟踪StackOverflow中发生的事情,所以也许他会提供关于何时会发布的额外评论。如果不是,你可能想写点东西给OrientDB邮件列表。