如何重置hbase和zookeeper

时间:2014-12-03 03:48:28

标签: hbase apache-zookeeper

开发群集HBase经常关闭后无法联系zookeeper。我希望有一个“nuke”开关能够简单地吹掉与hbase相关的zk节点,并且能够从头开始。

进行此类重置的方法是什么?

BTW尝试通过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 个答案:

答案 0 :(得分:0)

正如您所说,Zookeeper的硬重置是唯一的解决方案。