How to connect Gremlin Server to a remote Neo4j Database?

笑着哭i 提交于 2020-01-03 17:21:05

问题


I have a Question about the Gremlin Server. Is it possible to connect a Gremlin Server to a Neo4j Server (remote database)? At the Moment I have a Neo4j database in my fileysystem and a Gremlin Server which connect to it. Now I want both Servers running with the same Neo4J Database

I use: Gremlin Server 3.1.1 Neo4J Community 2.2.8 (can update to 2.3.2)

I've found another Question but without answers How to connect Blueprints to a remote neo4j server


回答1:


You can use the SteelBridgeLabs/neo4j-gremlin-bolt that provides a connection over the bolt protocol. When starting the connection, you can provide a remote address

Note that the functionalities are, at the moment, limited with indexes.


Background on the "other" Neo4j Java plugin

When dealing with Gremlin/Tinkerpop, the current implementation is a wrapper of the Neo4j Java API, although it can parse some cypher queries, it doesn't send them to the server. Also, it doesn't convert the gremlin queries into cypher queries.

If you look a the file conf/neo4j-empty.properties you will notice gremlin.neo4j.directory=/tmp/neo4j. This is the path to the actual store, where your data is. In simplified terms, there is no Neo4j server running, just java binaries that know how to deal with the Neo4j store binaries.

neo4j-tinkerpop-api-impl is NOT Apache 2 licensed



来源:https://stackoverflow.com/questions/36180796/how-to-connect-gremlin-server-to-a-remote-neo4j-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!