Search code examples
neo4jgremlin-server

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


I want to run gremlin-server and neo4j together.

So I make to run neo4j docker image in my machine, and try to connect it with BOLT protocol.

Could anyone help to configure .yaml/.property file in gremlin-server for this?

Used version | gremlin-server 3.4.0 & neo4j 3.2.3


Solution

  • The configuration options for the Graph instance property file can be found here. 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:

    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.

    graphs: {
      graph: conf/bolt.properties}