小编Abh*_*ram的帖子

将 Janusgraph 与 AWSKeyspaces 结合使用。从 gremlin 控制台添加顶点时,我收到一条错误消息“锁定写入重试次数超出”

Gremlin 控制台: gremlin> :远程连接tinkerpop.server conf/remote.yaml ==>配置的 localhost/127.0.0.1:8182

gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182] - type ':remote console' to return to local mode

gremlin> graph
==>standardjanusgraph[cql:[cassandra.us-east-2.amazonaws.com]]
gremlin> g = graph.traversal()

==>graphtraversalsource[standardjanusgraph[cql:[cassandra.us-east-2.amazonaws.com]], standard]
gremlin> g.addV('student').property('name', 'Jeffery').property('GPA', 'A+');

Lock write retry count exceeded
Run Code Online (Sandbox Code Playgroud)

我的设置如下

  janusgraph.storage.cql.ssl.enabled: "true"
  janusgraph.index.search.hostname: jce-elastic
  janusgraph.storage.cql.local-datacenter: "us-east-2"
  janusgraph.storage.cql.partitioner-name: DefaultPartitioner
  janusgraph.storage.cql.metadata-schema-enabled: "false"
  janusgraph.storage.cql.metadata-token-map-enabled: "false"
  janusgraph.storage.cql.only-use-local-consistency-for-system-operations: "true"
  janusgraph.log.janusgraph.key-consistent: "true"
  janusgraph.log.tx.key-consistent: "true"
  janusgraph.storage.cql.read-consistency-level: "LOCAL_QUORUM"
  janusgraph.storage.cql.write-consistency-level: "LOCAL_QUORUM"
  janusgraph.graph.assign-timestamp: "false"
Run Code Online (Sandbox Code Playgroud)

以下是服务器日志

jce-janusgraph   | 232996 [gremlin-server-exec-4] WARN  org.janusgraph.diskstorage.locking.consistentkey.ConsistentKeyLocker …
Run Code Online (Sandbox Code Playgroud)

gremlin janusgraph amazon-keyspaces

3
推荐指数
1
解决办法
154
查看次数

标签 统计

amazon-keyspaces ×1

gremlin ×1

janusgraph ×1