Date
1 - 4 of 4
when i use Janusgraph in Apache Atlas, i found an error
qiuqi...@...
hello i am new in JanusGraph. When i use Janusgraph in Apache Atlas, i found a question, the error is :
how can i solve it? thank you very much |
|
marc.d...@...
Hi, See a similar question on: HTH, Marc Op woensdag 15 januari 2020 14:11:14 UTC+1 schreef qi...@...:
|
|
Pavel Stejskal <pavel....@...>
Hello,
toggle quoted message
Show quoted text
I've got the same issue with the latest version of JanusGraph and Atlas from master branch. Did you manage somehow appropriate type/serializer registration to produce GraphSON output? I'd like to visualise graph via Cytoscape or Graphexp. Thanks for any advice! I've tried already - gremlin config (using Scylla and ES): attributes.custom.attribute1.attribute-class=org.apache.atlas.typesystem.types.DataTypes.TypeCategory attributes.custom.attribute1.serializer-class=org.apache.atlas.repository.graphdb.janus.serializer.TypeCategorySerializer attributes.custom.attribute2.attribute-class=java.util.ArrayList attributes.custom.attribute2.serializer-class=org.janusgraph.graphdb.database.serialize.attribute.SerializableSerializer attributes.custom.attribute3.attribute-class=java.math.BigInteger attributes.custom.attribute3.serializer-class=org.apache.atlas.repository.graphdb.janus.serializer.BigIntegerSerializer attributes.custom.attribute4.attribute-class=java.math.BigDecimal attributes.custom.attribute4.serializer-class=org.apache.atlas.repository.graphdb.janus.serializer.BigDecimalSerializer then from gremlin cli: graph.io(IoCore.graphson()).writeGraph("/atlas.json") resulting into: org.apache.tinkerpop.shaded.jackson.databind.JsonMappingException: Could not find a type identifier for the class : class org.apache.atlas.typesystem.types.DataTypes$TypeCategory. Make sure the value to serialize has a type identifier registered for its class. Dne středa 15. ledna 2020 v 14:31:09 UTC+1 uživatel mar...@... napsal:
|
|
HadoopMarc <bi...@...>
Hi Pavel, I do not recognize the way you want to register classes for serialization by JanusGraph towards gremlin driver, but this may be due to my limited knowledge on this issue. JanusGraph itself registers the additional classes it has defined in the following way: So, this would involve defining your own IoRegistry class and configuring it for gremlin server (and optionally for the remote-objects.yaml for gremlin driver). HTH, Marc Op woensdag 22 juli 2020 om 17:21:15 UTC+2 schreef pav...@...: Hello, |
|