• 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

  • 相关阅读:
    014 接口和抽象类有什么区别?
    013 抽象类能使用 final 修饰吗?
    web前端开发入门_ web前端需要掌握的知识体系
    使用Ajax同步请求时,等待时间过长增加页面提示问题
    h5移动端禁止长按图片保存
    深入浏览器事件循环的本质
    power assert_更智能、优雅的全方位 assert 断言库
    网络串流播放_HTML5如何优化视频文件以便在网络上更快地串流播放
    什么是断点续传?前端如何实现文件的断点续传
    移动端自适应
  • 原文地址:https://www.cnblogs.com/jhxxb/p/11599206.html
Copyright © 2020-2023  润新知