简体   繁体   English

如何在gremlin-server中连接neo4j和bolt协议?

[英]How to connect neo4j with bolt protocol in gremlin-server?

I want to run gremlin-server and neo4j together. 我想一起运行gremlin-server和neo4j。

So I make to run neo4j docker image in my machine, and try to connect it with BOLT protocol. 所以我在我的机器上运行neo4j docker image,并尝试用BOLT协议连接它。

Could anyone help to configure .yaml/.property file in gremlin-server for this? 任何人都可以帮助在gremlin-server中配置.yaml / .property文件吗?

Used version | 二手版| gremlin-server 3.4.0 & neo4j 3.2.3 gremlin-server 3.4.0&neo4j 3.2.3

The configuration options for the Graph instance property file can be found here . 可以在此处找到Graph实例属性文件的配置选项。 I'm not sure what the minimum requirements are for this provider, but from a TinkerPop perspective you need to at least specify the Graph instance with gremlin.graph and then include whatever other configurations you need to connect: 我不确定此提供程序的最低要求是什么,但从TinkerPop的角度来看,您至少需要使用gremlin.graph指定Graph实例,然后包含您需要连接的任何其他配置:

gremlin.graph=com.steelbridgelabs.oss.neo4j.structure.Neo4jGraphFactory
neo4j.hostname=...
neo4j.port=...

Then in the Gremlin Server yaml file you just reference the path to the above property file. 然后在Gremlin Server yaml文件中,您只需引用上述属性文件的路径。

graphs: {
  graph: conf/bolt.properties}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM