【问题标题】:Issues with connecting a Neo4j 2.2.3 graph.db with a gremlin 2.6.0 console or rexster 2.6.0 interface将 Neo4j 2.2.3 graph.db 与 gremlin 2.6.0 控制台或 rexster 2.6.0 接口连接的问题
【发布时间】:2015-10-06 07:11:58
【问题描述】:

我做了什么..

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

  • 按照此处的说明手动安装 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 实现,还是我没有完成所有必需的步骤来正确配置它?

感谢任何指点! 谢谢!

【问题讨论】:

    标签: neo4j graph-databases gremlin rexster


    【解决方案1】:

    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

    【讨论】:

    • 谢谢@Stephen!将尝试使用 TinkerPop 3.x 进行连接。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多