Janusgraph remote connection


dimi...@...
 

Hello all i would like some help since i cannot find something online. I want to connect remotely to a Gremlin server and take a JanusGraph Instance. 

i was testing with this and I could get back a JanusGraph

 JanusGraphFactory.open(configuration Map).traversal().withRemote(DriverRemoteConnection.using(cluster());



But then with the new version of Tinkerpop withRemote is deprecated.Then i followed what they were saying to use Anonymous Graph Traversal
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(DriverRemoteConnection.using(cluster()));

JanusGraph graph = (JanusGraph) g.getGraph();


but the i get an error the I cannot cast an EmptyGraph.

If anybody has an idea how can i can connect to a remote gremlin server and take a JanusGraph instance please share. I want the instance in order to be able to use the Management API.

Thanks


Stephen Mallette <spmal...@...>
 

You can not communicate with the Management API from a remote traversal. This answer on SO explains further:


On Mon, May 11, 2020 at 6:51 AM <dimi...@...> wrote:
Hello all i would like some help since i cannot find something online. I want to connect remotely to a Gremlin server and take a JanusGraph Instance. 

i was testing with this and I could get back a JanusGraph

 JanusGraphFactory.open(configuration Map).traversal().withRemote(DriverRemoteConnection.using(cluster());



But then with the new version of Tinkerpop withRemote is deprecated.Then i followed what they were saying to use Anonymous Graph Traversal
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(DriverRemoteConnection.using(cluster()));

JanusGraph graph = (JanusGraph) g.getGraph();


but the i get an error the I cannot cast an EmptyGraph.

If anybody has an idea how can i can connect to a remote gremlin server and take a JanusGraph instance please share. I want the instance in order to be able to use the Management API.

Thanks

--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgra...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/b7575d5b-a5e0-4310-b5af-39cc6d63f5dc%40googlegroups.com.