2014-04-24 52 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郵件列表。