janusgraph无法连接到hbase

gijlo24d  于 2021-06-09  发布在  Hbase
关注(0)|答案(1)|浏览(438)

我下载了janusgraph,解压缩了它,并试图通过gremlin连接到它。我想使用hbase作为存储后端。
我运行了以下命令:

JanusGraph g = JanusGraphFactory.build().set("storage.backend", "hbase").set("storage.hostname", [SERVERNAME]).set("storage.port", "2181").set("storage.hbase.ext.zookeeper.znode.parent", "/hbase-secure").set("storage.hbase.table", "test").open();

还尝试了:

JanusGraph g = JanusGraphFactory.build().set("storage.backend","hbase").set("storage.hostname,[SERVERNAME]).set("storage.hbase.ext.zookeeper.znode.parent", "/hbasesecure").set("storage.hbase.table", "test").set("cache.db-cache-time","180000").set("cache.db-cache-size","0.5").set("cache.db-cache-cleanwait","20").set("cache.db-cache", "true").open();

有以下例外。知道我做错了什么吗?
org.janusgraph.diskstorage.hbase.hbasestoremanager-getdeployment()java.lang.runtimeexception:org.janusgraph.diskstorage.temporarybackendexception:org.janusgraph.diskstorage.hbase.hbasestoremanager.getdeployment(hbasestoremanager)的存储后端出现临时故障。java:370)在org.janusgraph.diskstorage.hbase.hbasestoremanager.getfeatures(hbasestoremanager。java:409)在org.janusgraph.graphdb.configuration.graphdatabaseconfiguration.(graphdatabaseconfiguration。java:1383)在org.janusgraph.core.janusgraphfactory.open(janusgraphfactory。java:164)在org.janusgraph.core.janusgraphfactory.open(janusgraphfactory。java:133)在org.janusgraph.core.janusgraphfactory.open(janusgraphfactory。java:80)位于org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray)的org.janusgraph.core.janusgraphfactory$open.call(未知源代码)。java:47)

unhi4e5o

unhi4e5o1#

我也在想同样的问题。我认为问题是janusgraph 0.4.0与hbase1.x不兼容(不管发行说明怎么说),我正在尝试janusgraph的旧版本来测试这个理论。
资料来源:https://github.com/janusgraph/janusgraph/issues/1723

相关问题