Comments (6)
I believe hbase.zookeeper.quorum should just be a comma separated list of hosts only - port is set with hbase.zookeeper.clientPort. See https://github.com/apache/hbase/blob/master/hbase-common/src/main/resources/hbase-default.xml for more info.
from hgraphdb.
@tellisnz is correct, thanks for answering.
from hgraphdb.
hi,@rayokota @tellisnz
Thanks for answering.I modified the code, but still get an error. when set one host is OK.
set("hbase.zookeeper.quorum", "192.168.178.91,192.168.178.92,192.168.178.93")
2016-12-09 09:30:47 ERROR org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher - hconnection-0x12d3a4e90x0, quorum=[192.168.178.91:2181, 192.168.178.92:2181, 192.168.178.93]:2181, baseZNode=/hbase_lions Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode = OperationTimeout
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.checkZk(RecoverableZooKeeper.java:144)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:221)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:541)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:879)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
at io.hgraphdb.HBaseGraphUtils.getConnection(HBaseGraphUtils.java:59)
at io.hgraphdb.HBaseGraph.<init>(HBaseGraph.java:156)
at io.hgraphdb.HBaseGraph.<init>(HBaseGraph.java:135)
at io.hgraphdb.HBaseGraph.open(HBaseGraph.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:78)
at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:70)
at com.jd.risk.hbase.demo.HGraphDBDemo.main(HGraphDBDemo.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
2016-12-09 09:30:47 WARN org.apache.hadoop.hbase.client.ZooKeeperRegistry - Can't retrieve clusterId from Zookeeper
org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode = OperationTimeout
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.checkZk(RecoverableZooKeeper.java:144)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:221)
from hgraphdb.
the same error to me, when connecting to zookeeper, the quorum parses the error format
the connectString=[192.168.178.91:2181, 192.168.178.92:2181, 192.168.178.93]:2181
the detail error:
2016-12-09 09:45:54 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly transient ZooKeeper, quorum=[192.168.178.91:2181, 192.168.178.92:2181, 192.168.178.93]:2181, exception=org.apache.zookeeper.KeeperException$OperationTimeoutException: KeeperErrorCode = OperationTimeout
2016-12-09 09:45:55 INFO org.apache.zookeeper.ZooKeeper - Initiating client connection, connectString=[192.168.178.91:2181, 192.168.178.92:2181, 192.168.178.93]:2181 sessionTimeout=180000 watcher=hconnection-0x589b36320x0, quorum=[192.168.178.91:2181, 192.168.178.92:2181, 192.168.178.93]:2181, baseZNode=/hbase_lions
2016-12-09 09:45:55 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Unable to create ZooKeeper Connection
java.net.UnknownHostException: [192.168.178.91: invalid IPv6 address
at java.net.InetAddress.getAllByName(InetAddress.java:1146)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:61)
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445)
at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.checkZk(RecoverableZooKeeper.java:141)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:221)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:541)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:105)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.retrieveClusterId(ConnectionManager.java:879)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(ConnectionManager.java:635)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:238)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:218)
at org.apache.hadoop.hbase.client.ConnectionFactory.createConnection(ConnectionFactory.java:119)
at io.hgraphdb.HBaseGraphUtils.getConnection(HBaseGraphUtils.java:59)
at io.hgraphdb.HBaseGraph.<init>(HBaseGraph.java:156)
at io.hgraphdb.HBaseGraph.<init>(HBaseGraph.java:135)
at io.hgraphdb.HBaseGraph.open(HBaseGraph.java:123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:78)
at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:70)
at com.jd.risk.hbase.demo.HGraphDBDemo.main(HGraphDBDemo.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
from hgraphdb.
Ok, this is fixed in 0.4.2. Please let me know if you have any further issues. Thanks.
from hgraphdb.
@rayokota Thanks, now it's OK with 0.4.2.
from hgraphdb.
Related Issues (20)
- Insert array list as edge property in HgraphDB HOT 6
- Creating too many threads to hbase HOT 10
- [question] Does hgraphdb support bulkload HOT 1
- Handle Exception if an edge does not have a property HOT 6
- Issue accessing Hgraphdb from Gremlin console HOT 1
- duplicated vertexes and edges HOT 1
- Data traversal query delay HOT 1
- [Question] Spark DataFrame Bulkload to HgraphDB HOT 1
- Insert data with spark, some data can not be queried out HOT 6
- Hot spots in vertex index table HOT 5
- how to query vertex if I do not know what label is HOT 2
- Any release notes?
- Can JanusGraph be a final product of this project? HOT 1
- why edgeindex has CREATED_AT HOT 1
- How to parallelize hbase ops? HOT 7
- using Spark GraphFrames
- Parallel loading performance still has some method to optimize HOT 2
- Hbase 2.0+ Support HOT 3
- Edge Indices Problem when using bulk loader HOT 1
- Transaction support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hgraphdb.