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

  • 相关阅读:
    [POJ] 1979 Red and Black
    [Codeforces Round #192 (Div. 2)] D. Biridian Forest
    [Codeforces Round #192 (Div. 2)] B. Road Construction
    [Codeforces Round #192 (Div. 2)] A. Cakeminator
    430 vue组件命名方式: 短横线、驼峰
    429 vue脚手架
    428 webpack 使用步骤
    427 单页面应用,vue路由
    426 vue组件
    425 json-server,axios
  • 原文地址:https://www.cnblogs.com/cl1024cl/p/6205114.html
Copyright © 2011-2022 走看看