org.apache.hadoop.hbase.tool
Class Canary
java.lang.Object
org.apache.hadoop.hbase.tool.Canary
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public final class Canary
- extends Object
- implements org.apache.hadoop.util.Tool
HBase Canary Tool, that that can be used to do
"canary monitoring" of a running HBase cluster.
Foreach region tries to get one row per column family
and outputs some information about failure or latency.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Canary
public Canary()
Canary
public Canary(Canary.Sink sink)
getConf
public org.apache.hadoop.conf.Configuration getConf()
- Specified by:
getConf
in interface org.apache.hadoop.conf.Configurable
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
- Specified by:
setConf
in interface org.apache.hadoop.conf.Configurable
run
public int run(String[] args)
throws Exception
- Specified by:
run
in interface org.apache.hadoop.util.Tool
- Throws:
Exception
sniff
public static void sniff(HBaseAdmin admin,
TableName tableName)
throws Exception
- Canary entry point for specified table.
- Parameters:
admin
- tableName
-
- Throws:
Exception
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.