通常,开发集群hbase在我关闭zookeeper之后无法联系它。我想有一个“核”开关,能够简单地吹走hbase相关的zk节点,并能够从头开始。
怎么做这样的重置?
顺便说一句,尝试通过hbase shell进行连接时会出现以下消息:
19:28:09/bin $hbase shell
2014-12-03 00:23:28,687 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.98.0-hadoop2, r1565492, Thu Feb 6 16:46:57 PST 2014
hbase(main):001:0> list
TABLE
SLF4J: Class path contains multiple SLF4J bindings.
2014-12-03 00:24:06,576 ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x357c5b44, quorum=localhost:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
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:1041)
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:199)
1条答案
按热度按时间jdgnovmf1#
正如你所说的,zookeeper的硬重置是唯一的解决方案。