kd1510 opened a new issue, #2526: URL: https://github.com/apache/incubator-hugegraph/issues/2526
### Problem Type (问题类型) None ### Before submit - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents) ### Environment (环境信息) - Server Version: 1.0.0 (Apache Release Version) - Backend: RocksDB 1 nodes, SSD - OS: Mac M1, Running HugeGraph in docker ### Your Question (问题描述) Hello, I have managed to get HugeGraph running via docker, and can connect to the server via the TinkerPop Java client. I'm getting serialization errors only for the ID, however, and I am able to fetch other labels etc. Config: gremlin-server.yaml ``` # host and port of gremlin server, need to be consistent with host and port in rest-server.properties host: 0.0.0.0 port: 8182 # timeout in ms of gremlin query evaluationTimeout: 30000 channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer # don't set graph at here, this happens after support for dynamically adding graph graphs: { } scriptEngines: { gremlin-groovy: { staticImports: [ org.opencypher.gremlin.process.traversal.CustomPredicates.*', org.opencypher.gremlin.traversal.CustomFunctions.* ], plugins: { org.apache.hugegraph.plugin.HugeGraphGremlinPlugin: {}, org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {}, org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin: { classImports: [ java.lang.Math, org.apache.hugegraph.backend.id.IdGenerator, org.apache.hugegraph.type.define.Directions, org.apache.hugegraph.type.define.NodeRole, org.apache.hugegraph.masterelection.GlobalMasterInfo, org.apache.hugegraph.util.DateUtil, org.apache.hugegraph.traversal.algorithm.CollectionPathsTraverser, org.apache.hugegraph.traversal.algorithm.CountTraverser, org.apache.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser, org.apache.hugegraph.traversal.algorithm.CustomizePathsTraverser, org.apache.hugegraph.traversal.algorithm.FusiformSimilarityTraverser, org.apache.hugegraph.traversal.algorithm.HugeTraverser, org.apache.hugegraph.traversal.algorithm.JaccardSimilarTraverser, org.apache.hugegraph.traversal.algorithm.KneighborTraverser, org.apache.hugegraph.traversal.algorithm.KoutTraverser, org.apache.hugegraph.traversal.algorithm.MultiNodeShortestPathTraverser, org.apache.hugegraph.traversal.algorithm.NeighborRankTraverser, org.apache.hugegraph.traversal.algorithm.PathsTraverser, org.apache.hugegraph.traversal.algorithm.PersonalRankTraverser, org.apache.hugegraph.traversal.algorithm.SameNeighborTraverser, org.apache.hugegraph.traversal.algorithm.ShortestPathTraverser, org.apache.hugegraph.traversal.algorithm.SingleSourceShortestPathTraverser, org.apache.hugegraph.traversal.algorithm.SubGraphTraverser, org.apache.hugegraph.traversal.algorithm.TemplatePathsTraverser, org.apache.hugegraph.traversal.algorithm.steps.EdgeStep, org.apache.hugegraph.traversal.algorithm.steps.RepeatEdgeStep, org.apache.hugegraph.traversal.algorithm.steps.WeightedEdgeStep, org.apache.hugegraph.traversal.optimize.ConditionP, org.apache.hugegraph.traversal.optimize.Text, org.apache.hugegraph.traversal.optimize.TraversalUtil, org.opencypher.gremlin.traversal.CustomFunctions, org.opencypher.gremlin.traversal.CustomPredicate ], methodImports: [ java.lang.Math#*, org.opencypher.gremlin.traversal.CustomPredicate#*, org.opencypher.gremlin.traversal.CustomFunctions#* ] }, org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: { files: [scripts/empty-sample.groovy] } } } } serializers: - {className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0, config: { serializeResultToString: true, ioRegistries: [ com.apache.hugegraph.io.HugeGraphIoRegistry] } } - { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0, config: { serializeResultToString: true, ioRegistries: [ org.apache.hugegraph.io.HugeGraphIoRegistry ] } } - {className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1, config: { serializeResultToString: true, ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry] } } - {className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { serializeResultToString: true, ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry] } } metrics: { consoleReporter: {enabled: false, interval: 180000}, csvReporter: {enabled: false, interval: 180000, fileName: ./metrics/gremlin-server-metrics.csv}, jmxReporter: {enabled: false}, slf4jReporter: {enabled: false, interval: 180000}, gangliaReporter: {enabled: false, interval: 180000, addressingMode: MULTICAST}, graphiteReporter: {enabled: false, interval: 180000} } maxInitialLineLength: 4096 maxHeaderSize: 8192 maxChunkSize: 8192 maxContentLength: 65536 maxAccumulationBufferComponents: 1024 resultIterationBatchSize: 64 writeBufferLowWaterMark: 32768 writeBufferHighWaterMark: 65536 ssl: { enabled: false } ``` remote-objects.yaml ``` hosts: [localhost] port: 8182 gremlin.remote.remoteConnectionClass: org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection gremlin.remote.driver.sourceName: __g_hugegraph serializer: - {className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, config: { serializeResultToString: true, ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry] } } ``` code: ```kotlin import org.apache.tinkerpop.gremlin.process.traversal.AnonymousTraversalSource.traversal val g = traversal().withRemote("remote-objects.yaml") g.V("78f9ff4f705c25ce722cc537614cc177cfc3179c").toList() //Throws error Error during serialization, serializer org.apache.hugegraph.backend.id.IdGenerator$StringId not found g.V("78f9ff4f705c25ce722cc537614cc177cfc3179c").label().toList() // Deserializes and returns labels fine from the server. ``` Any help appreciated! ### Vertex/Edge example (问题点 / 边数据举例) _No response_ ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构) _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
