ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
运行hbase shell命令时报错:2018-09-02 13:50:33,994 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after4 attempts2018-09-02 13:50:33,995 WARN[main] zookeeper.ZKUtil: hconnection-...
·
运行hbase shell
命令时报错:
2018-09-02 13:50:33,994 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after
4 attempts
2018-09-02 13:50:33,995 WARN [main] zookeeper.ZKUtil: hconnection-0x5679e96b0x0, quorum=localhost:
2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for
/hbase/hbaseid
at org.apache.zookeeper.KeeperException.create(KeeperException.java:99)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:1045)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:
220)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:419)
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.retrieveClust
erId(ConnectionManager.java:905)
at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.<init>(Connec
tionManager.java:648)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java
:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorI
mpl.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)
解决方案:
注释掉 hbase-site.xml
里所有和dns相关的配置,重启hbase
更多推荐
已为社区贡献1条内容
所有评论(0)