hbase shell 报错,ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x17049300x0, quorum=master:2181

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/csu/hbase-1.2.4/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/csu/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2021-02-27 11:36:52,812 ERROR [main] zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 4 attempts
2021-02-27 11:36:52,816 WARN  [main] zookeeper.ZKUtil: hconnection-0x17049300x0, quorum=master:2181, baseZNode=/hbase Unable to set watcher on znode (/hbase/hbaseid)
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

ERROR [main] zookeeper.ZooKeeperWatcher: hconnection-0x17049300x0, quorum=master:2181, baseZNode=/hbase Received unexpected KeeperException, re-throwing exception
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid

错误原因:我自己安装了zookeeper,并且conf/hbase.env.sh配置中也是选择的独立的zookeeper但是在开启hbase之前没有启动zookeeper

启动Hadoop ===> 启动zookeeper ===> 启动hbase

启动zookeeper:

cd /home/csu/zookeeper-3.4.9/bin/
./zkServer.sh start
./zkCli.sh -server master:2181
上一篇:【IntelliJ IDEA】程序包org.slf4j不存在


下一篇:图解Java日志体系