现象
hbase hmaster启动报错
master.HMaster: Failed to become active master java.lang.IllegalStateException: 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.
环境
- hbase1.6
- hadoop2.9
两种方法:
1)不推荐
<property>
<name>hbase.unsafe.stream.capability.enforce</name>
<value>false</value>
</property>
2)更改hadoop依赖
hbase预编译的,编译依赖的hadoop版本为2.8.5,实际使用的hadoop是2.9.2,将$HBASE_HOME/lib/hadoop-*-2.8.5.jar 全部换成 hadoop-*-2.9.2.jar,所需新版本jar包在这个目录下:$HADOOP_HOME/share/hadoop/
操作之后重启hbase即可