zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

大叔经验分享(126)hbase hmaster启动报错

HBase 报错 启动 分享 经验 大叔 126
2023-09-14 09:00:07 时间

现象

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