1

我想使用 gremlin-server 部署 orientDB 图,并使用 gremlin_python 库将其与 python 连接。

我下载了orientDB with gremlin server - zip社区版

我可以通过运行来部署 orientDB bin\server.bat,但是没有gremlin-server.bat(或.sh)可用于使用 gremlin-server 部署 orientDB。

我之前下载了 tinkerpop gremlin-server,并尝试使用 orientDB 中可用的 gremlin-server.yaml 文件运行它。

一些版本信息:

OrientDB : orientdb-tp3-3.0.2
Tinkerpop : apache-tinkerpop-gremlin-server-3.3.1
Gremlin_python : gremlinpython==3.3.2

版本控制可能是个问题。但我也想知道如何设置。我足够好,我只需要更正版本吗?

4

2 回答 2

1

总是首选相同的版本。

对于 OrientDB 端,您可以下载带有 Gremlin Server 版本的 OrientDB 没有 gremlin-server.bat,因为里面有一个插件,当 OrientDB 启动时会生成 GremlinServer。目前 OrientDB 发布 GremlinServer 3.3.0

或者,您可以在 Gremlin 服务器中安装 OrientDB Gremlin 驱动程序

你可以在这里找到一些关于这个的文档

https://orientdb.com/docs/3.0.x/tinkerpop3/OrientDB-TinkerPop3.html#gremlin-server

于 2018-06-20T12:36:59.780 回答
0
from gremlin_python.process.anonymous_traversal import traversal

from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection

from gremlin_python.structure.graph import Graph

graph = Graph()
g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g', username = "root",password="root_password"))

为我工作

于 2019-03-08T12:47:08.577 回答