@InterfaceAudience.LimitedPrivate(value="Tools") public class CanaryTool extends Object implements org.apache.hadoop.util.Tool, Canary
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CanaryTool.Monitor
A Monitor super-class can be extended by users
|
static class |
CanaryTool.RegionServerStdOutSink
By RegionServer, for 'regionserver' mode.
|
static class |
CanaryTool.RegionStdOutSink
By Region, for 'region' mode.
|
static class |
CanaryTool.RegionTaskResult
Canary region mode-specific data structure which stores information about each region
to be scanned
|
static interface |
CanaryTool.Sink
Sink interface used by the canary to output information
|
static class |
CanaryTool.StdOutSink
Simple implementation of canary sink that allows plotting to a file or standard output.
|
static class |
CanaryTool.ZookeeperStdOutSink
Output for 'zookeeper' mode.
|
Canary.Factory| 限定符和类型 | 字段和说明 |
|---|---|
static TableName |
DEFAULT_WRITE_TABLE_NAME |
static String |
HBASE_CANARY_FAIL_ON_ERROR |
static String |
HBASE_CANARY_REGION_READ_TABLE_TIMEOUT |
static String |
HBASE_CANARY_REGION_WRITE_SNIFFING |
static String |
HBASE_CANARY_REGION_WRITE_TABLE_NAME |
static String |
HBASE_CANARY_REGION_WRITE_TABLE_TIMEOUT |
static String |
HBASE_CANARY_REGIONSERVER_ALL_REGIONS |
static String |
HBASE_CANARY_TIMEOUT |
static String |
HBASE_CANARY_USE_REGEX |
static String |
HBASE_CANARY_ZOOKEEPER_PERMITTED_FAILURES |
| 构造器和说明 |
|---|
CanaryTool() |
CanaryTool(ExecutorService executor) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
checkRegions(String[] targets)
Run Canary in Region mode.
|
int |
checkRegionServers(String[] targets)
Runs Canary in Region server mode.
|
int |
checkZooKeeper()
Runs Canary in Zookeeper mode.
|
org.apache.hadoop.conf.Configuration |
getConf() |
Map<String,String> |
getReadFailures() |
Map<String,String> |
getWriteFailures() |
static void |
main(String[] args) |
int |
run(String[] args) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
public static final TableName DEFAULT_WRITE_TABLE_NAME
public static final String HBASE_CANARY_REGIONSERVER_ALL_REGIONS
public static final String HBASE_CANARY_REGION_WRITE_SNIFFING
public static final String HBASE_CANARY_REGION_WRITE_TABLE_TIMEOUT
public static final String HBASE_CANARY_REGION_WRITE_TABLE_NAME
public static final String HBASE_CANARY_REGION_READ_TABLE_TIMEOUT
public static final String HBASE_CANARY_ZOOKEEPER_PERMITTED_FAILURES
public CanaryTool()
public CanaryTool(ExecutorService executor)
public int checkRegions(String[] targets) throws Exception
CanarycheckRegions 在接口中 Canarytargets - -- list of monitor tables.Exceptionpublic int checkRegionServers(String[] targets) throws Exception
CanarycheckRegionServers 在接口中 Canarytargets - -- list of monitor tables.Exceptionpublic int checkZooKeeper()
throws Exception
CanarycheckZooKeeper 在接口中 CanaryExceptionpublic org.apache.hadoop.conf.Configuration getConf()
getConf 在接口中 org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf 在接口中 org.apache.hadoop.conf.Configurablepublic int run(String[] args) throws Exception
run 在接口中 org.apache.hadoop.util.ToolExceptionpublic Map<String,String> getReadFailures()
getReadFailures 在接口中 Canarypublic Map<String,String> getWriteFailures()
getWriteFailures 在接口中 CanaryCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.