带有 cassandra 后端的 Janusgraph 1.0.0:错误无序列化器

问题描述 投票:0回答:1

当尝试使用 CS 和 ES 后端设置 janusgraph 1.0.0 时,我收到以下错误:

13:01:23 ERROR org.apache.tinkerpop.gremlin.server.AbstractChannelizer.configureSerializers - No serializers were successfully configured - server will not start.
13:01:23 ERROR org.apache.tinkerpop.gremlin.server.GremlinServer.start - Gremlin Server Error
java.lang.RuntimeException: Serialization configuration error.
    at org.apache.tinkerpop.gremlin.server.AbstractChannelizer.configureSerializers(AbstractChannelizer.java:294) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.AbstractChannelizer.init(AbstractChannelizer.java:144) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer.init(WebSocketChannelizer.java:67) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.GremlinServer.start(GremlinServer.java:167) [gremlin-server-3.7.0.jar:3.7.0]
    at org.janusgraph.graphdb.server.JanusGraphServer.start(JanusGraphServer.java:98) [janusgraph-server-1.0.0.jar:?]
    at org.janusgraph.graphdb.server.JanusGraphServer.main(JanusGraphServer.java:53) [janusgraph-server-1.0.0.jar:?]
13:01:23 ERROR org.janusgraph.graphdb.server.JanusGraphServer.lambda$main$0 - JanusGraph Server was unable to start and will now begin shutdown
java.util.concurrent.CompletionException: java.lang.RuntimeException: Serialization configuration error.
    at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source) ~[?:?]
    at java.util.concurrent.CompletableFuture.uniAcceptNow(Unknown Source) [?:?]
    at java.util.concurrent.CompletableFuture.uniAcceptStage(Unknown Source) [?:?]
    at java.util.concurrent.CompletableFuture.thenAcceptAsync(Unknown Source) [?:?]
    at org.janusgraph.graphdb.server.JanusGraphServer.start(JanusGraphServer.java:99) ~[janusgraph-server-1.0.0.jar:?]
    at org.janusgraph.graphdb.server.JanusGraphServer.main(JanusGraphServer.java:53) [janusgraph-server-1.0.0.jar:?]
Caused by: java.lang.RuntimeException: Serialization configuration error.
    at org.apache.tinkerpop.gremlin.server.AbstractChannelizer.configureSerializers(AbstractChannelizer.java:294) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.AbstractChannelizer.init(AbstractChannelizer.java:144) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer.init(WebSocketChannelizer.java:67) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.apache.tinkerpop.gremlin.server.GremlinServer.start(GremlinServer.java:167) ~[gremlin-server-3.7.0.jar:3.7.0]
    at org.janusgraph.graphdb.server.JanusGraphServer.start(JanusGraphServer.java:98) ~[janusgraph-server-1.0.0.jar:?]
    ... 1 more
13:01:23 INFO  org.apache.tinkerpop.gremlin.server.GremlinServer.lambda$stop$2 - Shutting down OpProcessor[]
13:01:23 INFO  org.apache.tinkerpop.gremlin.server.GremlinServer.lambda$stop$2 - Shutting down OpProcessor[session]
13:01:23 INFO  org.apache.tinkerpop.gremlin.server.GremlinServer.lambda$stop$2 - Shutting down OpProcessor[traversal]
13:01:23 INFO  org.apache.tinkerpop.gremlin.server.GremlinServer.stop - Shutting down thread poo

任何指南都会有帮助。

谢谢, 阿图尔

janusgraph gremlin-server
1个回答
0
投票

我在将 Janusgraph 从 v0.6.0 升级到 v1.0.0 时遇到了非常类似的问题。请检查下面我启动服务后立即返回的所有错误(janusgraph.service)

ERROR org.apache.tinkerpop.gremlin.server.AbstractChannelizer.configureSerializers - No serializers were successfully configured - server will not start.

ERROR org.apache.tinkerpop.gremlin.server.GremlinServer.start - Gremlin Server Error

java.lang.RuntimeException: Serialization configuration error.
ERROR org.janusgraph.graphdb.server.JanusGraphServer.lambda$main$0 - JanusGraph Server was unable to start and will now begin shutdown

java.util.concurrent.CompletionException: java.lang.RuntimeException: Serialization configuration error.

Caused by: java.lang.RuntimeException: Serialization configuration error.

请检查我的

gremlin-server.yaml
序列化器状态。

 serializers:
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphBinaryMessageSerializerV1, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphBinaryMessageSerializerV1, config: { serializeResultToString: true }}
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV3, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
  # Older serialization versions for backwards compatibility:
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV2, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONMessageSerializerV1, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
 - { className: org.apache.tinkerpop.gremlin.util.ser.GraphSONUntypedMessageSerializerV1, config: { ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
© www.soinside.com 2019 - 2024. All rights reserved.