我使用 gremlin-console(即 janusgraph)远程连接到 gremlin 服务器,但是当我创建变量并访问它时,它不起作用。我的最终目标是使用 gremlin-console 创建索引...
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> a = "b"
==>b
gremlin> a
No such property: a for class: Script3
Type ':help' or ':h' for help.