In over my head with gremlin / Java #1863
Unanswered
unimaginativeusername
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I found a solution after some more trial and error: in
gremlin-server.groovie |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do you think we should update the docs and/or the code somewhere? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to connect to a remote database:
Docker
Setting up the connection:
Getting the graph:
return pool.get();
Using it:
This works, as long as I create a DB called "graph". I have need now for using multiple schemas at the same time and would like to access them as above.
Calling the traversal results in
I suspect I need to change a server config? Is it at all possible to use multiple databases in parallel?
(Everything works in Studio; I can access both databases via Postgres driver, too, using the same config. Both databases - graph and auth - were created through studio on top of the Beer example.)
My setup is a bit Frankenstein'ed, but I think I have provided everything that matters for this issue; I use postgres solely to get Flyway to cooperate during boot.
Edit:
In my installation, I copied gremlin-server.properties into gremlin-server-new.properties and included the path to the new database; I then extended the graphs-entry in in gremlin-server-yaml to include graph: ./config/gremlin-server-new.properties
It boots with:
2024-12-15 16:55:11.435 INFO [ServerGremlinExecutor] A GraphTraversalSource is now bound to [g] with graphtraversalsource[arcadegraph[new], standard]
2024-12-15 16:55:11.438 INFO [ServerGremlinExecutor] A GraphTraversalSource is now bound to [graph] with graphtraversalsource[arcadegraph[new], standard]
Access fails with The traversal source [new] for alias [g] is not configured on the server.
Edit2.
From the documentation:
I guess I'm in the wrong place, but I can't see what to change here?
Beta Was this translation helpful? Give feedback.
All reactions