2014-12-03 96 views
0

經常有開發羣集HBase在關閉後無法聯繫zookeeper。我希望有一個「nuke」開關能夠簡單地吹走hbase相關的zk節點,並能夠從頭開始。如何重置hbase和zookeeper

做這種重置的方法是什麼?

試圖通過HBase的外殼連接時BTW這是一個信息:

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) 

回答

0

正如你所說的動物園管理員的硬復位是唯一的解決辦法。

+0

我更改了hbase.zookeeper.property.dataDir並重新啓動了zk/hbase ..但上述問題仍然存在。 – javadba 2014-12-03 08:28:30