微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。