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