Search code examples
pythonorientdbgremlin-servergremlinpython

Use python with orientDB and gremlin-server


I want to deploy orientDB graph using gremlin-server, and connect it with python using gremlin_python library.

I downloaded orientDB with gremlin server - zip community edition

I am able to deploy orientDB by running bin\server.bat , but there is no gremlin-server.bat (or .sh) available to deploy orientDB with gremlin-server.

I had previously downloaded tinkerpop gremlin-server, and tried running that with gremlin-server.yaml file available in orientDB.

Some version info :

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

The versioning may be an issue. But I also want to know how to set this up. Was my good enough, and I just need to correct the versions?


Solution

  • it's always preferred to have the same version.

    For OrientDB side you can download the OrientDB with Gremlin Server edition There is no gremlin-server.bat since there is a plugin inside that spawn the GremlinServer when OrientDB boot up. For now OrientDB Ships GremlinServer 3.3.0

    Alternatively you can install the OrientDB Gremlin driver in a Gremlin Server

    You can find some docs about this here

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