先去查看hbase的日志文档,发现出现以下显示


master.HMaster: Failed to become active master



The procedure WAL relies on the ability to hsync for proper operation during component failures, but the underlying filesystem does not support doing so. Please check the config value of ‘hbase.procedure.store.wal.use.hsync’ to set the desired level of robustness and ensure the config value of ‘hbase.wal.dir’ points to a FileSystem mount that can provide it.


1、注意hadoop版本是否匹配

2、在hbase-site.xml

添加

<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>