ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
可能的原因:
1. 时间没有同步
HBase需要结点间的时间必须是同步的,可以使用date命令在Linux查看时间
具体请看博客:https://blog.youkuaiyun.com/loopeng1/article/details/79051884
安装
# yum -y install ntp
设置时区
# timedatectl set-timezone Asia/Shanghai
重启服务
systemctl restart ntpd
-每个client节点启动ntpd服务
# systemctl start ntpd
# systemctl enable ntpd
所有节点时间同步
# timedatectl set-ntp yes
自己设置时间:
服务器上网麻烦所以我采用自己更改时间:
date -s '2019-12-01 19:30:00' 按照这个格式
2. 底层采用的不是hdfs协议
这个可以通过查看hbase-site.xml中参数hbase.rootdir的值来群定,一些其它的协议比如file协议等等,
HBase也 是支持的
3. 防火墙
##查看防火墙状态
systemctl status firewalld.service
##关闭运行的防火墙
systemctl stop firewalld.service
1) 查看zookeeper的状态是否正常,可以使用 zkServer.sh status 查看状态,或者直接查看它的日志
2) 如果zookeeper的状态正常,很有可能就是防火墙阻挡了zookeeper的默认端口2181
参考博客:https://blog.youkuaiyun.com/qaz1qaz1qaz2/article/details/52825373