Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :remote connect tinkerpop.server conf/compose.yaml session
- :remote console
- graph=ConfiguredGraphFactory.create("mygraph")
- graph=ConfiguredGraphFactory.open("mygraph")
- g.addV("pat")
- g.tx().commit()
- hosts: [portal-xxx.composedb.com]
- port: 15290
- username: admin
- password: pass
- connectionPool: { enableSsl: true }
- serializer: { className:
- org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0,
- config: { serializeResultToString: true } }
- gremlin.remote.remoteConnectionClass=org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection
- # cluster file has the remote server configuration
- #gremlin.remote.driver.clusterFile=gremlin-console.yaml
- gremlin.remote.driver.clusterFile=/Users/julian.stephen/ibm.github/privacy-secbu/Privacy-DataViz/src/main/resources/gremlin-console.yaml
- # source name is the global graph traversal source defined on the server
- gremlin.remote.driver.sourceName=mygraph
- Graph graph = EmptyGraph.instance();
- GraphTraversalSource g = graph.traversal().withRemote(conf);
- g.addV("Java Remote Test");
- g.close();
- JanusGraph graph = ConfiguredGraphFactory.open("mygraph");
Add Comment
Please, Sign In to add comment