HBase shell 启动出错 $ConnectionLossException: KeeperErrorCode = Con

时间:2025-04-12 08:00:19

一般发生在长期使用hbase,后面再安装之后直接使用hbase shell 想要进入hbase界面,却没有启动而导致的。


[root@master local]# hbase shell

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.7.!/org/slf4j/impl/]
SLF4J: Found binding in [jar:file:/usr/local/hadoop2/share/hadoop/common/lib/slf4j-log4j12-1.7.!/org/slf4j/impl/]
SLF4J: See http:///#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org..Log4jLoggerFactory]
2015-05-17 23:11:37,482 ERROR [main] : ZooKeeper exists failed after 4 attempts
2015-05-17 23:11:37,484 WARN  [main] : hconnection-0x1623e7c40x0, quorum=master:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    at (:99)
    at (:51)
    at (:1045)
    at (:222)
    at (:481)
    at (:65)
    at (:86)
    at $(:833)
    at $HConnectionImplementation.<init>(:623)
    at .newInstance0(Native Method)
    at (:57)
    at (:45)
    at (:526)
    at (:238)
    at (:218)
    at (:119)
    at .invoke0(Native Method)
    at (:57)
    at (:43)
    at (:606)
    at (:450)
    at (:362)
    at (:58)
    at (:312)
    at (:169)
    at (:57)
    at (:95)
    at (:104)
    at (:71)
    at .INTERPRET_METHOD(:74)
    at (:169)
    at (:191)
    at (:302)
    at (:144)
    at (:148)
    at (:822)
    at $i$(RubyClass$i$:65535)
    at $(:249)
    at (:292)
    at (:135)
    at .__file__(/usr/local/hbase/bin/:118)
    at (/usr/local/hbase/bin/)
    at (:697)
    at (:690)
    at (:597)
    at (:446)
    at (:369)
    at (:258)
    at (:224)
    at (:208)
    at (:188)
2015-05-17 23:11:37,492 ERROR [main] : hconnection-0x1623e7c40x0, quorum=master:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
    at (:99)
    at (:51)
    at (:1045)
    at (:222)
    at (:481)
    at (:65)
    at (:86)
    at $(:833)
    at $HConnectionImplementation.<init>(:623)
    at .newInstance0(Native Method)
    at (:57)
    at (:45)
    at (:526)
    at (:238)
    at (:218)
    at (:119)
    at .invoke0(Native Method)
    at (:57)
    at (:43)
    at (:606)
    at (:450)
    at (:362)
    at (:58)
    at (:312)
    at (:169)
    at (:57)
    at (:95)
    at (:104)
    at (:71)
    at .INTERPRET_METHOD(:74)
    at (:169)
    at (:191)
    at (:302)
    at (:144)
    at (:148)
    at (:822)
    at $i$(RubyClass$i$:65535)
    at $(:249)
    at (:292)
    at (:135)
    at .__file__(/usr/local/hbase/bin/:118)
    at (/usr/local/hbase/bin/)
    at (:697)
    at (:690)
    at (:597)
    at (:446)
    at (:369)
    at (:258)
    at (:224)
    at (:208)
    at (:188)
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell

Version 1.0.1, r66a93c09df3b12ff7b86c39bc8475c60e15af82d, Fri Apr 17 22:14:06 PDT 2015



原因 没有启动HBase 需要运行 才可以。