Isopropyl9
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I have decided to just add a custom "id" property, as opposed to setting the actual ID controlled by janusgraph. I assumed providing custom IDs would be the most practical, but It seems that having a custom field works well enough for my purposes. Thank you for helping me with this, but I think there are too many intricate details for me to deal with and understand with this right now.
As you suggested, the
janusgraph.graph.set-vertex-id: true
property in docker-compose.yml worked, but after trying to provide my own ID values it said that they were invalid. I have provided the full stack trace. Strangely, using an id of 0
returns a different error than other IDs, such as 1
.
Reading the documentation, it sounds like we're supposed to get a custom ID by using the ID manager like so:
But I cannot figure out how to use this in gremlin-python. I believe it is janusgraph specific.28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I also get the following messages to do with my "read only" volume at the beginning of my janusgraph logs:
Could this be a problem? If I don't make it read-only, the config file gets overridden as soon as the container starts. Notice the "ro" at the end of my volume.
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I would like to mention again that my docker config only contains the following:
And my custom janusgraph.properties config file volume contains the following:
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I tried tearing down/rebuilding the docker container (and deleting volumes), and I got the same error to do with lock files. Then I tried deleting the lock file just to see what would happen, and I got the following. It seems that there is a global variable that is setting the indexing backend to elasticsearch. But I thought I was using lucene? I don't believe I need a fancy indexing backend for my simple project, so I thought lucene would make things more simple. And I am not sure how I could change these global values without being able to create a
graph
instance in the gremlin console.28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
And here is the stack trace when I run the same Python script:
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
Here is the stack trace for
graph = JanusGraphFactory.open('conf/janusgraph-berkeleyje-server.properties')
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I also tried the inmemory config file just in case, and I was able to successfully set the value, as you said:
But my code still produced the same error.
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
Thank you very much for getting back to me. I tried connecting to the graph in gremlin console using the following:
As you can see, it didn't work. So I think I must have bigger issues haha. I thought berkeley was used by default, but it doesn't seem to be working.
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
I've investigated the logs and found this message:
So now my question becomes, how do I set the global value?
28 replies
ATApache TinkerPop
•Created by Isopropyl9 on 11/9/2023 in #questions
Docker Janusgraph Custom ID Values
My
./janusgraph/janusgraph.properties
contains the following:
28 replies