Trying to connect to JanusGraph server/Cassandra with Kotlin client
I'm new to JanusGraph and attempting to connect to a remote server from a Kotlin client. I have created two Docker containers and everything looks good from the logs of JanusGraph:
val g = traversal().withRemote("conf/remote-graph.properties")g.addV("person").property("name", "john").next()
val g = traversal().withRemote("conf/remote-graph.properties")g.addV("person").property("name", "john").next()
The error I get is:
java.lang.UnsupportedOperationException: Graph does not support adding vertices at org.apache.tinkerpop.gremlin.structure.Graph$Exceptions.vertexAdditionsNotSupported(Graph.java:1248) at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyGraph.addVertex(EmptyGraph.java:60) at org.apache.tinkerpop.gremlin.structure.Graph.addVertex(Graph.java:128)
java.lang.UnsupportedOperationException: Graph does not support adding vertices at org.apache.tinkerpop.gremlin.structure.Graph$Exceptions.vertexAdditionsNotSupported(Graph.java:1248) at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyGraph.addVertex(EmptyGraph.java:60) at org.apache.tinkerpop.gremlin.structure.Graph.addVertex(Graph.java:128)
I've seen other questions out there that involve adding snippets to the server yaml and/or groovy scripts but I'm not sure what is necessary. I'm trying to keep this as simple as possible to start. Appreciate any tips!