JanusGraph Management Configuration Not Taking Effect in Gremlin Server #4682
Unanswered
lesleyDeng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm seeking assistance about configuring JanusGraph scheme with Gremlin Server. I've configured the schema for vertices and edges in a
.groovy
script usingmgmt
, but it seems that these configurations are not being applied correctly.What I've Done:
I've created a .groovy script to define and configure the schema through JanusGraph's management system (mgmt).
I've defined vertex labels and edge labels along with their properties.
.groovy
Script:Issue:
When I try to add a vertex with a property that I've defined in my .groovy script, I'm encountering an error. I believe the schema configuration should be applied, because I've seen the
println
output, but it seems it's not happening.Error message:
~/tools/python38/lib/python3.8/site-packages/gremlin_python/structure/io/graphbinaryV1.py in to_object(self, buff, data_type, nullable)
202 buff.read(1)
203 return None
--> 204 return self.deserializers[DataType(bt)].objectify(buff, self, nullable)
205 else:
206 return self.deserializers[data_type].objectify(buff, self, nullable)
KeyError: <DataType.custom: 0>
I've verified that the .groovy script is being executed without any exceptions, but the property doesn't seem to be recognized when I try to create a vertex.
Does anyone have any insights into what might be causing this issue? Any help would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions