master.HMaster: Failed to become active master

报错内容:

ERROR [master/h136:16000:becomeActiveMaster] 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.
        at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.rollWriter(WALProcedureStore.java:1092)
        at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.recoverLease(WALProcedureStore.java:424)
        at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.init(ProcedureExecutor.java:576)
        at org.apache.hadoop.hbase.master.HMaster.createProcedureExecutor(HMaster.java:1527)
        at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:937)
        at org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2111)
        at org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:579)
        at java.lang.Thread.run(Thread.java:748)
ERROR [master/h136:16000:becomeActiveMaster] master.HMaster: ***** ABORTING master h136,16000,1569574300027: 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. at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.rollWriter(WALProcedureStore.java:1092) at org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.recoverLease(WALProcedureStore.java:424) at org.apache.hadoop.hbase.procedure2.ProcedureExecutor.init(ProcedureExecutor.java:576) at org.apache.hadoop.hbase.master.HMaster.createProcedureExecutor(HMaster.java:1527) at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:937) at org.apache.hadoop.hbase.master.HMaster.startActiveMasterManager(HMaster.java:2111) at org.apache.hadoop.hbase.master.HMaster.lambda$run$0(HMaster.java:579) at java.lang.Thread.run(Thread.java:748)
ERROR [main] master.HMasterCommandLine: Master exiting java.lang.RuntimeException: HMaster Aborted at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:244) at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:140) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:149) at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2923)

解决方法:

在配置文件 hbase-site.xml 中添加:

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

 


https://www.cnblogs.com/kevin19931015/p/9243230.html

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

https://www.cndba.cn/dave/article/3321

转载于:https://www.cnblogs.com/jhxxb/p/11599206.html

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 这个问题可能是由于 Hadoop 集群中的某些节点出现了故障或网络问题导致的。您可以尝试重新启动 Hadoop 集群中的所有节点,或者检查 Hadoop 集群的配置是否正确。如果问题仍然存在,请查看 Hadoop 集群的日志文件以获取更多详细信息。 ### 回答2: 在解决"ERROR [master/spark-hdp-master-1:16000:becomeActiveMaster] master.HMaster: Failed to become active master"错误时,可以尝试以下几个步骤: 1. 检查网络连接:首先,确保网络连接是正常的,这个错误可能是由于网络连接出现问题导致的。可以尝试重启网络设备,或者检查网络配置文件是否正确。 2. 检查Master节点状态:检查Master节点的状态,确保它运行正常并且没有任何错误。可以查看Master节点的日志文件,检查是否有其他错误或异常。 3. 检查配置文件:确认Hadoop集群的相关配置文件是否正确。检查HBase的配置文件,确保所有必要的配置项都已正确设置。特别要注意检查HBase的主备节点配置项,确保所有节点都正确配置。 4. 检查端口和防火墙:确认相关端口是否被阻止或被其他服务占用。可以检查防火墙设置,确保相关端口是开放的。如果端口被其他服务占用,可以尝试更改HBase的端口设置。 5. 检查内存和磁盘空间:确保Master节点上有足够的内存和磁盘空间,以便正常运行HBase。可以通过查看系统资源使用情况来确认。 6. 检查依赖项:检查是否缺少任何必要的库或依赖项。确保所有依赖项都已正确安装和配置。 如果上述步骤都没有解决问题,建议查看更详细的错误日志,以获取更多信息。根据错误日志,可以尝试搜索相关错误消息,查找其他用户可能遇到过的相似问题和解决方案。最后,如果问题仍然存在,建议向HBase社区或专业技术支持提问,以获取更专业的帮助。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值