HBase集群开启后HMaster马上挂掉(16010web页面打不开)

HBase问题笔记


HBase集群开启后HMaster马上挂掉(16010web页面打不开)

最开始发现问题是启动HBase集群后‘一切正常’但是却无法打开16010web页面,然后查看jps才发现刚打开的HBase集群的HMaster消失了

一开始看到大佬们的都是

  • hbase-site.xml文件里设置的端口号和hadoop的etc/core-site.xml设置的端口号不一致的问题

  • zookeeper缓存文件和现行HBase信息不一致的问题:https://www.yisu.com/zixun/551407.html

但我chua的一下查看尝试了之后发现都是没问题,愁得我想着各种可能,甚至以为是因为我开起了高可用的原因(因为每次主节点马上挂掉后HMaster都会在备用节点开启),结果证明也不是这个原因。

最后进入/hbase/logs查看日志,发现报错大致如下:

ERROR [Thread-14] 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.

.
.
.

ERROR [Thread-14] master.HMaster: ***** ABORTING master hadoop102,16000,1661520307091: Unhandled exception. Starting shutdown. *****
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.

在这里插入图片描述

解决方案:

在(每个节点,否则没配置的HRegionServer节点会在启动后马上挂掉)配置文件 hbase-site.xml 中添加:

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

然后重启HBase集群,之后就能打开16010的web页面了,HMaster也没有无故挂掉了。

在这里插入图片描述

在这里插入图片描述

  • 1
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值