我这样启动我的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)

我发现了什么但没有帮助
  • V3 doc,但是他们使用的是Java而不是Python
  • orientdb-server-config.xml但我需要python
  • yaml 文件
  • gremlin-server.sh -i org.apache.tinkerpop orientdb-gremlin 3.3.1抛出错误'[未解决的依赖项:org.apache.tinkerpop#orientdb-gremlin; 3.3.1:未找到]'
  • 'orientdb-community-importers-2.2.31 / bin'执行了一个名为'gremlin.sh'的文件,但我无法执行g = graph.traversal()之类的操作
  • 尝试了“./gremlin-server.sh -i com.orientechnologies orientdb-gremlin 2.2.31”,它安装了一些东西,但我不知道该如何进行。
  • 最佳答案

    据我了解,您正在使用的是很旧版本的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/

    10-12 00:24
    查看更多