2

我正在尝试设置 Rexster(2.5 版)以使用 OrientDB(1.7 rc2)。问题是我不知道应该<graph-type>在图形配置的字段中输入什么。最近的 Rexster 文档(https://github.com/tinkerpop/rexster/wiki/Specific-Graph-Configurations)指出,OrientDB 支持已从包中删除,因此必须复制 orientdb-client 和 orientdb-enterprise jars 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,在使用orientgraphfor时效果很好<graph-type>(根据https://code.google.com/p/orient/wiki/Rexster)。这种方法在 2.5 中失败。我觉得我一定遗漏了一些明显的东西。有人可以指出解决方案吗?

谢谢!

4

1 回答 1

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 邮件列表中写一些东西。

于 2014-04-25T11:37:25.277 回答