Janusgraph: No such property: mgmt when remote connect by Gremlin.sh

Created on 1 Apr 2018  路  1Comment  路  Source: JanusGraph/janusgraph

I am new to janusgraph.

janusgraph 0.2.0
cassandra 3.11
elasticsearch 6.2.3

I used gremlin.sh connecting to Janusgraph-Gremlin-server remotely or locally, got:

gremlin> :remote connect tinkerpop.server conf/remote.yaml
Configured localhost/127.0.0.1:8182
gremlin> : remote  console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode
gremlin> graph = JanusGraphFactory.open('conf/gremlin-server/janusgraph-cassandra-es-server.properties')
==>standardjanusgraph[cassandrathrift:[cassandra]]
gremlin> graph
==>standardjanusgraph[cassandrathrift:[cassandra]]
gremlin> mgmt = graph.openManagement()
==>org.janusgraph.graphdb.database.management.ManagementSystem@23aa3e76
gremlin> mgmt
No such property: mgmt for class: Script1

if I don't use:remote, execute graph.openManagement() at local will be fine.

How can i handle this issue? Thanks

kinquestion

Most helpful comment

Use a session

gremlin> :remote connect tinkerpop.server conf/remote.yaml session

>All comments

Use a session

gremlin> :remote connect tinkerpop.server conf/remote.yaml session
Was this page helpful?
0 / 5 - 0 ratings