开发者社区> 问答> 正文

hbase2.0 /hbase/MasterProcWALs下的log突然不能自动删除掉

2018-08-23 17:26:09,477 WARN [WALProcedureStoreSyncThread] wal.WALProcedureStore: procedure WALs count=65 above the warning threshold 64. check running procedures to see if something is stuck.

展开
收起
hbase小能手 2018-11-08 11:08:00 5986 0
1 条回答
写回答
取消 提交回答
  • HBase是一个分布式的、面向列的开源数据库,一个结构化数据的分布式存储系统。HBase不同于一般的关系数据库,它是一个适合于非结构化数据存储的数据库。阿里云HBase技术团队共同探讨HBase及其生态的问题。

    首先可以看看WALProcedureStore类的源码,这段告警是说超过hbase.procedure.store.wal.warn.threshold配置的阈值导致,默认是64。如果超过此配置的阈值的时候就不会做清理日志的操作了,源码如下:
    boolean rollWriter(final long logId) throws IOException {

    ...
    logs.add(new ProcedureWALFile(fs, newLogFile, header, startPos, rollTs));

    // if it's the first next WAL being added, build the holding cleanup tracker
    if (logs.size() == 2) {
    buildHoldingCleanupTracker();
    } else if (logs.size() > walCountWarnThreshold) {
    LOG.warn("procedure WALs count=" + logs.size() +

    " above the warning threshold " + walCountWarnThreshold +
    ". check running procedures to see if something is stuck.");

    }

    LOG.info("Rolled new Procedure Store WAL, id={}", logId);
    return true;

    }

    2019-07-17 23:12:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
PostgresChina2018_赖思超_PostgreSQL10_hash索引的WAL日志修改版final 立即下载
Kubernetes下日志实时采集、存储与计算实践 立即下载
日志数据采集与分析对接 立即下载