我这样启动我的Gremlin NEO4J
./gremlin-server.sh conf/gremlin-server-neo4j.yaml
我已经安装了OrientDB Community Edition,它似乎正在通过IP:2480 / studio / index.htm工作
现在,我正在尝试将Gremlin服务器连接到Orient DB,但找不到任何方法来实现它
用于连接Gremlin Server的Python代码
from gremlin_python.driver import client as driver
# Constants for connections to gremlin
GREMLIN_VAR = 'g'
GREMLIN_URL = 'ws://localhost:8182/gremlin'
client = driver.Client(GREMLIN_URL, GREMLIN_VAR)
我发现了什么但没有帮助
最佳答案
据我了解,您正在使用的是很旧版本的orientdb
的配置,在最新版本中使用orientdb-gremlin 3.0.2
,它们将gremlin与orientdb一起嵌入,对于下载依赖项,请使用此./gremlin-server.sh -i com.orientechnologies orientdb-gremlin 3.0.2
根据OP提供的更多信息,添加了
gremlin.graph=org.apache.tinkerpop.gremlin.orientdb.OrientFactory
orient-url=plocal:txt/GremlinServer
orient-user=admin
orient-pass=admin
希望这个能对您有所帮助
谢谢
关于python-3.x - Gremlin服务器连接到Orient DB,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49646876/