0

我做了什么 ..

  • 通过在 neo4j 界面中运行 Movie Graph 的密码查询来保存 Movie 节点和关系后,尝试连接到由 neo4j 2.2.3 生成的 graph.db 以便使用示例 Movie 图(稍后使用其他图..)在本地主机:7474

  • 按照此处的说明手动安装 Neo4j 2.x 的蓝图实现https://github.com/tinkerpop/rexster/wiki/Specific-Graph-Configurations .. 还更新了 Rexster.xml

更新后在 Rexter.xml 到我的 graph.db 中,尝试从localhost:8182/graphs/neo4jsample/tp/gremlin?script=gVmap()访问图表, 但它返回{"message":"Graph [neo4jsample] could not be found"}

从 gremlin 控制台g = new Neo4jGraph('*path/to/my/graph.db*')

投掷

org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter@9d35b10' was successfully initialized, but failed to start.

是 Rexster 和 Gremlin 还不支持 Neo4j 2.x 实现,还是我没有完成所有必需的步骤来正确配置它?

感谢任何指针!谢谢!

4

1 回答 1

0

Rexster/Gremlin 2.x 支持稍旧的 Neo4j 版本:

https://github.com/tinkerpop/blueprints/blob/master/blueprints-neo4j2-graph/pom.xml#L15

虽然我怀疑这完全是你的问题。如果您无法使用 Gremlin 控制台连接到您的图表,那么它将无法在 Rexster 中工作,因此您采取了正确的方法来尝试。当然,如果我没记错的话,Gremlin 控制台不会随 N​​eo4j 2.x 一起提供——它必须被“安装”(将依赖项复制到控制台的路径中)。

除非您有这样做的理由,否则我会考虑将 TinkerPop 2.x 抛在后面,看看新发布的 3.x。它直接支持 Neo4j 2.x,代表了 TinkerPop 的新方向:

http://tinkerpop.incubator.apache.org/docs/3.0.0-incubating/#neo4j-gremlin

于 2015-07-18T10:10:40.170 回答