报错信息例如:
2019-09-02 09:43:21,534 WARN [master/s128:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPEN, ts=1567388594985, server=s130,16020,1567155264196}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.
2019-09-02 09:43:22,535 WARN [master/s128:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPEN, ts=1567388594985, server=s130,16020,1567155264196}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.
2019-09-02 09:43:24,536 WARN [master/s128:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPEN, ts=1567388594985, server=s130,16020,1567155264196}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.
2019-09-02 09:43:28,537 WARN [master/s128:16000:becomeActiveMaster] master.HMaster: hbase:meta,,1.1588230740 is NOT online; state={1588230740 state=OPEN, ts=1567388594985, server=s130,16020,1567155264196}; ServerCrashProcedures=true. Master startup cannot progress, in holding-pattern until region onlined.
猜测问题,可能是不同网络环境造成,连接不同WiFi启动hbase。
解决问题:把在zookeeper中删除/hbase即可,本文的zookeeper用的是hbase自带的,产生的文件在D:hbase,这里还清空一下Hadoop,如下
D:IT_SoftwareHBasehadoop-2.7.3inhdfs namenode -format
rmdir /s/q D:Hortanwork1gbhadoopramSoftwarehadoop-2.7hadoop-2.7.1datadatanode
mkdir D:Hortanwork1gbhadoopramSoftwarehadoop-2.7hadoop-2.7.1datadatanode
参考文章:https://blog.csdn.net/weixin_30553777/article/details/101360935