報錯信息例如:
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_Software\HBase\hadoop-2.7.3\bin\hdfs namenode -format
rmdir /s/q D:\Hortanwork\1gbhadoopram\Software\hadoop-2.7\hadoop-2.7.1\data\datanode
mkdir D:\Hortanwork\1gbhadoopram\Software\hadoop-2.7\hadoop-2.7.1\data\datanode
參考文章:https://blog.csdn.net/weixin_30553777/article/details/101360935