测试环境 CDH,启动HbaseMaster时,启动失败,提示无法split WALs目录下的数据。
解决方法:删除WALs里的数据解决该问题(数据如不可恢复勿用该方法),重启成功
2018-09-14 14:43:07,254 WARN org.apache.hadoop.hbase.coordination.SplitLogManagerCoordination: Error splitting /hbase/splitWAL/WALs%2Ftest112%2C60020%2C1535004312092-splitting%2Ftest112%252C60020%252C1535004312092.meta.1536210684657.meta
2018-09-14 14:43:07,255 WARN org.apache.hadoop.hbase.master.SplitLogManager: error while splitting logs in [hdfs://test111:8020/home/hbase/WALs/test112,60020,1535004312092-splitting] installed = 1 but only 0 done
2018-09-14 14:43:07,255 FATAL org.apache.hadoop.hbase.master.HMaster: Failed to become active master
java.io.IOException: error or interrupted while splitting logs in [hdfs://test111:8020/home/hbase/WALs/test112,60020,1535004312092-splitting] Task = installed = 1 done = 0 error = 1at org.apache.hadoop.hbase.master.SplitLogManager.splitLogDistributed(SplitLogManager.java:291)at org.apache.hadoop.hbase.master.MasterFileSystem.splitLog(MasterFileSystem.java:436)at org.apache.hadoop.hbase.master.MasterFileSystem.splitMetaLog(MasterFileSystem.java:346)at org.apache.hadoop.hbase.master.MasterFileSystem.splitMetaLog(MasterFileSystem.java:337)at org.apache.hadoop.hbase.master.HMaster.splitMetaLogBeforeAssignment(HMaster.java:1073)at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:770)at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:194)at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1834)at java.lang.Thread.run(Thread.java:745)
2018-09-14 14:43:07,261 FATAL org.apache.hadoop.hbase.master.HMaster: Master server abort: loaded coprocessors are: []
2018-09-14 14:43:07,261 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown.
java.io.IOException: error or interrupted while splitting logs in [hdfs://test111:8020/home/hbase/WALs/test112,60020,1535004312092-splitting] Task = installed = 1 done = 0 error = 1at org.apache.hadoop.hbase.master.SplitLogManager.splitLogDistributed(SplitLogManager.java:291)at org.apache.hadoop.hbase.master.MasterFileSystem.splitLog(MasterFileSystem.java:436)at org.apache.hadoop.hbase.master.MasterFileSystem.splitMetaLog(MasterFileSystem.java:346)at org.apache.hadoop.hbase.master.MasterFileSystem.splitMetaLog(MasterFileSystem.java:337)at org.apache.hadoop.hbase.master.HMaster.splitMetaLogBeforeAssignment(HMaster.java:1073)at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:770)at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:194)at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1834)at java.lang.Thread.run(Thread.java:745)
2018-09-14 14:43:07,261 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: STOPPED: Unhandled exception. Starting shutdown.
2018-09-14 14:43:07,261 INFO org.apache.hadoop.hbase.regionserver.HRegionServer: Stopping infoServer