【原创】大叔经验分享(126)hbase hmaster启动报错

现象

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即可

参考:https://stackoverflow.com/questions/48709569/hbase-error-illegalstateexception-when-starting-master-hsync


---------------------------------------------------------------- 结束啦,我是大魔王先生的分割线 :) ----------------------------------------------------------------
  • 由于大魔王先生能力有限,文中可能存在错误,欢迎指正、补充!
  • 感谢您的阅读,如果文章对您有用,那么请为大魔王先生轻轻点个赞,ありがとう
原文地址:https://www.cnblogs.com/barneywill/p/14763686.html