Issue Setting up ConfiguredGraphFactory


Paul Heinzlreiter
 

Hi all,

 

I am trying to set up the Janusgraph ConfiguredGraphFactory for using multiple graphs.

I am using janusgraph-full-0.6.2

 

I am trying to configure it for the inmemory graph to exclude other possible issues.

 

I am using a janusgraph-inmemory-configurationgraph.properties:

gremlin.graph=org.janusgraph.core.ConfiguredGraphFactory

graph.graphname=ConfigurationManagementGraph

storage.backend=inmemory

 

And in gremlin-server.yaml:

 

graphs: {

  ConfigurationManagementGraph: conf/janusgraph-inmemory-configurationgraph.properties

}

 

Restarting gremlin server, then wanting to set up a template configuration:

 

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> map = new HashMap();

gremlin> map.put("storage.hostname", "inmemory");

 

Leads to the exception (from janusgraph server log)

 

[gremlin-server-exec-3] WARN  org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor  - Exception processing a script on request [RequestMessage{, requestId=2022abcc-d5fb-491e-bcc6-6952e7200339, op='eval', processor='', args={gremlin=map.put("storage.hostname", "inmemory");, bindings={}, batchSize=64}}].

groovy.lang.MissingPropertyException: No such property: map for class: Script4

 

So the map type cannot be (de)serialized?

 

Any help appreciated.

 

Regards,

Paul Heinzlreiter

 

--

DI Paul Heinzlreiter
Senior Data Engineer · Unit Logistics Informatics
paul.heinzlreiter@... · https://www.risc-software.at
+43 664 219 79 54

RISC Software GmbH
Softwarepark 32a · 4232 Hagenberg · Austria · +43 7236 93028
Commercial register no.: 89831f · Commercial register court: Landesgericht Linz, Austria

A company of Johannes Kepler University Linz

 

 

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