dee2xu
Explore posts from serversJJanusGraph
•Created by dee2xu on 12/31/2024 in #questions
Embedded graph with Scylla backend in Java
I'm trying to create an embedded graph in Java (using 11) connected to a Scylla cluster. I stood up the Scylla cluster with Docker using the Scylla University instructions linked to in the Janusgraph docs (https://university.scylladb.com/courses/the-mutant-monitoring-system-training-course/lessons/a-graph-data-system-powered-by-scylladb-and-janusgraph/). The cluster and the Janusgraph server is running just fine. I can connect to the server from a gremlin console and run scripts without issue. However, when I try to create an embedded graph in Java, I get errors indicating the connection cannot be made.
To create the graph, I'm using JanusGraphFactory.build().set("storage.backend","cql").set("storage.hostname","172.18.0.3").open()
The hostname IP is the IP for one of the Scylla nodes.
The primary exception seems to be AllNodesFailedException: Could not reach any contact point, make sure you've provided a valid address.
I tried to attach the full stack trace to this post.
3 replies
JJanusGraph
•Created by dee2xu on 4/23/2024 in #questions
JanusGraphManagement from Java client
Is it possible to, from the GraphTraversalSource, get to a JanusGraphManagment instance?
1 replies
JJanusGraph
•Created by dee2xu on 3/21/2024 in #questions
Indexing
Is it possible to have both a composite and mixed index for a vertex property. If so, is it ever desirable?
6 replies
ATApache TinkerPop
•Created by dee2xu on 10/25/2023 in #questions
Connecting to local gremlin server with websocket address
Hello everyone. I'm looking for help with a client app written in Java that uses Tinkerpop Gremlin to interact with a Janusgraph instance. When developing new features, I run a local Janusgraph with a Gremlin server at localhost. I'm trying demonstrate that I can take a websocket url and establish a connection using that URL. I believe that the default websocket address for a local Gremlin server is ws://127.0.0.1:8182/gremlin. I'm trying to use a Cluster to create the connection and obtain a GraphTraversalSource. Here's what I'm trying.
Cluster cluster = Cluster.build("ws://127.0.0.1:8182/gremlin").create();
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(DriverRemoteConnection.using(cluster));
This is throwing -- IllegalArgumentException: No such host is known (ws://127.0.0.1:8182/gremlin).
Am I doing something wrong? Any help apprecitated!
6 replies