2017-06-20 119 views
1

我想通過tinkerpop使用gremlin-server。我無法使用neo4j啓動gremlin服務器。與neo4j Gremlin服務器

該文件說。

請注意,TinkerPop在其發行版中不包含Neo4j依賴項。要使用此文件,請確保Neo4j的依賴安裝到小鬼服務器的路徑與gremlin-server.sh -i org.apache.tinkerpop的Neo4j-小鬼3.yz

我已經安裝使用的Neo4j的,小鬼:安裝,因爲-i據說已被棄用。

不過,我收到以下錯誤,在下面的命令

.\bin\gremlin-server.bat .\conf\gremlin-server-neo4j.yaml 

ERROR

[WARN] DefaultGraphManager - Graph [graph] configured at [conf/neo4j-empty.properties] could not be instantiated and will not be available in Gremlin Server. GraphFactory message: GraphFactory could not find [org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph] - Ensure that the jar is in the classpath 
java.lang.RuntimeException: GraphFactory could not find [org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph] - Ensure that the jar is in the classpath 
    at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:63) 
    at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:104) 
    at org.apache.tinkerpop.gremlin.server.util.DefaultGraphManager.lambda$new$0(DefaultGraphManager.java:57) 
    at java.util.LinkedHashMap$LinkedEntrySet.forEach(Unknown Source) 
    at org.apache.tinkerpop.gremlin.server.util.DefaultGraphManager.<init>(DefaultGraphManager.java:55) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
    at java.lang.reflect.Constructor.newInstance(Unknown Source) 
    at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:105) 
    at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:84) 
    at org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:111) 
    at org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:355) 
[INFO] ServerGremlinExecutor - Initialized Gremlin thread pool. Threads in pool named with pattern gremlin-* 
Exception in thread "main" java.lang.IllegalStateException: java.lang.ClassNotFoundException: org.apache.tinkerpop.gremlin.neo4j.jsr223.Neo4jGremlinPlugin 
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.initializeGremlinScriptEngineManager(GremlinExecutor.java:444) 
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.<init>(GremlinExecutor.java:103) 
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.<init>(GremlinExecutor.java:72) 
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor$Builder.create(GremlinExecutor.java:586) 
    at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:157) 
    at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:84) 
    at org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:111) 
    at org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:355) 
Caused by: java.lang.ClassNotFoundException: org.apache.tinkerpop.gremlin.neo4j.jsr223.Neo4jGremlinPlugin 
    at java.net.URLClassLoader.findClass(Unknown Source) 
    at java.lang.ClassLoader.loadClass(Unknown Source) 
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 
    at java.lang.ClassLoader.loadClass(Unknown Source) 
    at java.lang.Class.forName0(Native Method) 
    at java.lang.Class.forName(Unknown Source) 
    at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.initializeGremlinScriptEngineManager(GremlinExecutor.java:407) 
    ... 7 more 
+0

什麼在你的'GREMLIN_SERVER_INSTALL/ext'目錄中?你看到neo4j目錄和相關文件嗎?另外,你提到使用'gremlin-server.sh',但也指定使用'.bat'開始 - 這是一個Windows環境或其他? –

+0

我正在使用Windows環境。我無法在/ ext文件夾中找到neo4j目錄。但是這些文件安裝在Gremlin控制檯中。修復了從控制檯目錄到服務器目錄的簡單複製。 感謝您的指導。 –

+0

你是說'gremlin.bat:install'把neo4j jar放在'GREMLIN_SERVER_INSTALL/ext'以外的目錄中嗎? –

回答

1

:install在控制檯命令。

install是服務器命令。 -i也仍然有效。