Date
1 - 3 of 3
How to dynamically load graph with multiple keyspace with remote Janus server
Saini Datta <sainida...@...>
Hi, My problem is similar to https://groups.google.com/forum/#!topic/janusgraph-users/fwXDXJRNUFA I am developing a java application where there is a requirement, depending upon input, load a graph of particular keyspace. Janus server is running remotely. I am unable to do it through ConfiguredGraphFactory as the client is not getting the class instance of ConfiguredGraphFactory created by remote server and hence throwing the exception : "java.lang.RuntimeException: org.janusgraph.graphdb.managem I have the following queries: 1. Is there any way to connect remote server to get graph instance using ConfiguredGraphFactory? I know about withRemote(config) but it works only on traversal. 2. Is there any alternative approach where I can load a particular keyspace graph dynamically from java client. Please guide.. Thanks Saini |
|
Satyajit Bhadange <satyajit...@...>
Hi, This works for me. When I start my service I also start Gremlin Server with below-mentioned configuration. private void startGremlin() throws Exception {
Note: createTemplateConfiguration was giving me run time errors so that's why using updateTemplateConfiguration instead. Once the server is started you can access different graph by providing the only graphName. public JanusGraph getGraph(String graphName) { if (!ConfiguredGraphFactory.getGraphNames().contains(graphName)) { ConfiguredGraphFactory.create(graphName); } g = ConfiguredGraphFactory.open(graphName); return g; } gremlin.yaml graphManager: org.janusgraph.graphdb.management.JanusGraphManager janusGraph-configurationmanagement.properties gremlin.graph=org.janusgraph.core.JanusGraphFactory janusgraph-hbase.properties storage.backend=hbase Regards, Satyajit Bhadange On Fri, Jun 28, 2019 at 5:05 PM Saini Datta <sainida...@...> wrote:
|
|
Abhijeet Kumar <searcha...@...>
+1 On Friday, June 28, 2019 at 5:05:41 PM UTC+5:30, Saini Datta wrote:
|
|