ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

文章描述了在HBaseShell中遇到查看表错误的解决步骤,包括停止HBase服务,删除HDFS中的/hbase文件,清理Zookeeper中的HBase数据,重新启动HBase服务,并确认服务状态正常。最后,问题得到解决,HBaseShell可以正常运行并列出表格。
摘要由CSDN通过智能技术生成

在 HBase Shell 交互模式下,使用 list 查看表时发生错误如下:

在这里插入图片描述

解决方法:

# 1. HMaster 节点 停止 HBASE服务
~ $HBASE_HOME/bin/stop-hbase.sh 

# 2. 删除HDFS根目录下 /hbase 文件,如有需要可自己备份
~ hdfs dfs -rmr /hbase

# 3. 删除zk上hbase的数据
~ sh zkCli.sh
...
[zk: localhost:2181(CONNECTED) 0] rmr /hbase

# 4. 启动hbase
~ $HBASE_HOME/bin/start-hbase.sh 

# 5. 查看hbase服务
~ jps
52865 Jps
96661 NameNode
52264 HMaster  # 已启动,还可查看HRegionServer查看是否正常
88072 QuorumPeerMain
96954 ResourceManager
52540 Main

# 6. 再次进入hbase shell执行即可正常了
[root@hadoop0 hive]# hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/software/hbase/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/software/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.10.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]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.3.1, r930b9a55528fe45d8edce7af42fef2d35e77677a, Thu Apr  6 19:36:54 PDT 2017

hbase(main):001:0> list
TABLE                                                                                                                          
0 row(s) in 0.2070 seconds

=> []
hbase(main):002:0> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

程序员老五

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值