Bindings for graphs created using ConfiguredGraphFactory not working as expected


anya.sharma@...
 
Edited

Hello,

I have a local setup of JanusGraph 0.6.0 with Cassandra 3.11.9. I am creating a graph using the ConfiguredGraphFactory. For this, I am using the bundled properties and yaml files and creating the graph by running the following commands from the Gremlin console (also bundled with the JanusGraph installation):

gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/127.0.0.1:8182-[e2adcb38-efc9-4db2-9fba-b7678d7d096a]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[b71f19ce-41db-454b-8f1e-b89e0d0cc8b7] - type ':remote console' to return to local modegremlin> map = new HashMap();
gremlin> map.put('storage.backend', 'cql');
==>null
gremlin> map.put('storage.hostname', '127.0.0.1');
==>null
gremlin> map.put('graph.graphname', 'graph1');
==>null
gremlin> map.put('storage.username', 'myDBUsername');
==>null
gremlin> map.put('storage.password', 'myDBPassword');
==>null
gremlin> ConfiguredGraphFactory.createConfiguration(new MapConfiguration(map));
==>null

Once I have created the map, I try to access the graph and the traversal variables bound to it, but I get the following response:

gremlin> graph1
No such property: graph1 for class: Script7
Type ':help' or ':h' for help.
Display stack trace? [yN]
gremlin> graph1_traversal
No such property: graph1_traversal for class: Script8
Type ':help' or ':h' for help.
Display stack trace? [yN]

I am using the gremlin-server-configuration.yaml and janusgraph-cql-configuration.properties bundled with the JanusGraph installation package. The only changes I have made are adding the credentials and custom graph.graphname:

graph.graphname=graph1_config
storage.hostname=127.0.0.1
storage.username=myDBUsername
storage.password=myDBPassword

According to the documentation, I should be able to access the bound variables. I was able to do this in the 0.3.1 version of Janusgraph. What could I be missing/doing wrong?

Thanks
Anya

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.