zoukankan      html  css  js  c++  java
  • HBase Canary

        HBase  Canary 用于检测HBase 系统的状态。它对指定表的每一个region 抓取一行,来探测失败或者延迟。
        hbase org.apache.hadoop.hbase.tool.Canary -help
       
    Usage: bin/hbase org.apache.hadoop.hbase.tool.Canary [opts] [table1 [table2]...] | [regionserver1 [regionserver2]..]
     where [opts] are:
       -help          Show this help and exit.
       -regionserver  replace the table argument to regionserver,
          which means to enable regionserver mode
       -daemon        Continuous check at defined intervals.
       -interval <N>  Interval between checks (sec)
       -e             Use region/regionserver as regular expression
          which means the region/regionserver is regular expression pattern
       -f <B>         stop whole program if first error occurs, default is true
       -t <N>         timeout for a check, default is 600000 (milisecs)

    (1)检测每一个表的每一个region的每一个列簇。

        hbase  org.apache.hadoop.hbase.tool.Canary

    (2)检测指定表的每一个region的每一个列簇,表之间用空格分开

        hbase orghapache.hadoop.hbase.tool.Canary test-01 test-02

    (3)检测regionserver

         hbase orghapache.hadoop.hbase.tool.Canary  -regionserver

    (4)正则表达式检测

          hbase orghapache.hadoop.hbase.tool.Canary  -e test-0[1-2]

     (5)以daemon模式运行

          hbase orghapache.hadoop.hbase.tool.Canary -daemon

          时间间隔为50000毫秒,出现错误不会停止

          hbase orghapache.hadoop.hbase.tool.Canary -daemon -interval 50000 -f false
    (6)指定超时

         hbase orghapache.hadoop.hbase.tool.Canary -daemon  -t 6000000

  • 相关阅读:
    echarts 柱状图
    echarts 双y轴渐变色进度条
    echarts 折线图
    算法系列一:本质以及特征
    导致薪水低的九大行为表现
    Tomcat使用shutdown.sh无法关闭
    定时将上月的数据导入到Oracle中,并更新指定的列
    定时抛转数据 crontab
    微服务主要模块
    tk.mybatis 调用oracle,生成ID
  • 原文地址:https://www.cnblogs.com/cl1024cl/p/6205114.html
Copyright © 2011-2022 走看看