简体   繁体   中英

Janusgraph unable to connect to Hbase

I downloaded Janusgraph, unzipped it, and am trying to connect to it through gremlin. I want to use HBase as a storage backend.

I ran the following commands:

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();

And also tried:

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();

And got the following exception. Any idea what I am doing wrong?

org.janusgraph.diskstorage.hbase.HBaseStoreManager - Unexpected exception during getDeployment() java.lang.RuntimeException: org.janusgraph.diskstorage.TemporaryBackendException: Temporary failure in storage backend at org.janusgraph.diskstorage.hbase.HBaseStoreManager.getDeployment(HBaseStoreManager.java:370) at org.janusgraph.diskstorage.hbase.HBaseStoreManager.getFeatures(HBaseStoreManager.java:409) at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.(GraphDatabaseConfiguration.java:1383) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133) at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:80) at org.janusgraph.core.JanusGraphFactory$open.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)

I'm trying to figure out the same issue. I think the problem is that Janusgraph 0.4.0 is not compatible with HBase 1.x (despite what the release notes say) and am trying an older version of Janusgraph to test out that theory.

Source: https://github.com/JanusGraph/janusgraph/issues/1723

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM