tinkerpop - How can I use gremlin-console to remotely create and access variables? -
i remotely connect gremlin server using gremlin-console(which janusgraph), when create variable , access it, doesn't work. ultimate goal use gremlin-console create index...
gremlin> :remote connect tinkerpop.server conf/remote.yaml ==>configured localhost/127.0.0.1:8182 gremlin> :remote console ==>all scripts sent gremlin server - [localhost/127.0.0.1:8182] - type ':remote console' return local mode gremlin> = "b" ==>b gremlin> no such property: class: script3 type ':help' or ':h' help.
you can't use variables subsequent requests, because console default sessionless. every request executed in own transaction , no state shared between 2 different requests.
however can configure console use session appending session
keyword connect
argument:
gremlin> :remote connect tinkerpop.server conf/remote.yaml session ==>configured localhost/127.0.0.1:8182-[15dc7030-0e5b-4b4b-a997-9d2cf519ebb2] gremlin> :> x = 1 ==>1 gremlin> :> y = 2 ==>2 gremlin> :> x + y ==>3
i copied example the tinkerpop documentation topic.
Comments
Post a Comment