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:
I'm following the Connecting from Java directions with both
conf/remote-graph.properties
and conf/remote-objects.yaml
available.
In my Kotlin client, I'm just running:
The error I get is:
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!1 Reply
I'm getting closer I think. I'm able to add a vertex using the following snippet that I found in a Stackoverflow answer.
However, what I really want to do is return
g.graph
so that I can use the org.apache.tinkerpop.gremlin.structure.Graph
interface to be compatible with existing code in our project. When I try to modify the graph using the Graph
instead of the GraphTraversalSource
, I'm still seeing the error about not supporting addition of verticies.