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

  • 相关阅读:
    对于js中原型的理解
    换行问题
    居中方法
    浮动清除
    js基础内容 原型与实例
    uniapp 吸顶 小demo
    uniapp 锚点滚动报错(h.push is not a function)
    uni-app 页面滚动到指定位置
    过滤后端返回的html文本标签
    uniapp 上拉加载
  • 原文地址:https://www.cnblogs.com/cl1024cl/p/6205114.html
Copyright © 2011-2022 走看看