Janusgraph:无法使用 cql 后端打开图形

问题描述

我想使用 cql 作为 storage.backend 进行一些测试。我在本地运行 cassandra 服务。

λ cqlsh

WARNING: console codepage must be set to cp65001 to support utf-8 encoding on Windows platforms.
If you experience encoding problems,change your console codepage with 'chcp 65001' before starting cqlsh.

Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.9 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
WARNING: pyreadline dependency missing.  Install to enable tab completion.
cqlsh>

我认为 casscandra 运行正常。

我的 conf/janusgraph-cql.properties 是

gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=cql
storage.hostname=127.0.0.1
storage.cql.keyspace=janusgraph
cache.db-cache = true
cache.db-cache-clean-wait = 20
cache.db-cache-time = 180000
cache.db-cache-size = 0.5

然后我运行 gremlin 控制台并打开图表

gremlin> JanusGraphFactory.open('conf/janusgraph-cql.properties')

出现错误

Could not instantiate implementation: org.janusgraph.diskstorage.cql.CQLStoreManager
Type ':help' or ':h' for help.
display stack trace? [yN]
gremlin>

我发现了一些类似的问题,例如 Can not connect JanusGraph to local Cassandra on MacJanusgraph : Could not instantiate implementation: org.janusgraph.diskstorage.cql.CQLStoreManager 但这对我来说似乎不合适。我应该怎么做或者我错过了什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)