@InterfaceAudience.Private public class ExcludeDatanodeManager extends Object implements ConfigurationObserver
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_WAL_EXCLUDE_DATANODE_TTL |
static int |
DEFAULT_WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT |
static String |
WAL_EXCLUDE_DATANODE_TTL_KEY
Configure for the TTL time of the datanodes excluded
|
static String |
WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT_KEY
Configure for the max count the excluded datanodes.
|
| Constructor and Description |
|---|
ExcludeDatanodeManager(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
Map<org.apache.hadoop.hdfs.protocol.DatanodeInfo,Long> |
getExcludeDNs() |
StreamSlowMonitor |
getStreamSlowMonitor(String name) |
void |
onConfigurationChange(org.apache.hadoop.conf.Configuration conf) |
boolean |
tryAddExcludeDN(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanodeInfo,
String cause)
Try to add a datanode to the regionserver excluding cache
|
public static final String WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT_KEY
public static final int DEFAULT_WAL_MAX_EXCLUDE_SLOW_DATANODE_COUNT
public static final String WAL_EXCLUDE_DATANODE_TTL_KEY
public static final int DEFAULT_WAL_EXCLUDE_DATANODE_TTL
public ExcludeDatanodeManager(org.apache.hadoop.conf.Configuration conf)
public boolean tryAddExcludeDN(org.apache.hadoop.hdfs.protocol.DatanodeInfo datanodeInfo,
String cause)
datanodeInfo - the datanode to be added to the excluded cachecause - the cause that the datanode is hope to be excludedpublic StreamSlowMonitor getStreamSlowMonitor(String name)
public void onConfigurationChange(org.apache.hadoop.conf.Configuration conf)
onConfigurationChange in interface ConfigurationObserverCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.