public abstract class RestartActionBaseAction extends Action
Action.ActionContext
Modifier and Type | Field and Description |
---|---|
(package private) long |
sleepTime |
cluster, context, initialServers, initialStatus, KILL_DATANODE_TIMEOUT_DEFAULT, KILL_DATANODE_TIMEOUT_KEY, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_NAMENODE_TIMEOUT_DEFAULT, KILL_NAMENODE_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, KILL_ZK_NODE_TIMEOUT_DEFAULT, KILL_ZK_NODE_TIMEOUT_KEY, killDataNodeTimeout, killMasterTimeout, killNameNodeTimeout, killRsTimeout, killZkNodeTimeout, monkeyProps, skipMetaRS, START_DATANODE_TIMEOUT_DEFAULT, START_DATANODE_TIMEOUT_KEY, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_NAMENODE_TIMEOUT_DEFAULT, START_NAMENODE_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, START_ZK_NODE_TIMEOUT_DEFAULT, START_ZK_NODE_TIMEOUT_KEY, startDataNodeTimeout, startMasterTimeout, startNameNodeTimeout, startRsTimeout, startZkNodeTimeout
Constructor and Description |
---|
RestartActionBaseAction(long sleepTime) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
gracefulRestartRs(org.apache.hadoop.hbase.ServerName server,
long sleepTime)
Stop and then restart the region server instead of killing it.
|
(package private) void |
restartDataNode(org.apache.hadoop.hbase.ServerName server,
long sleepTime) |
(package private) void |
restartMaster(org.apache.hadoop.hbase.ServerName server,
long sleepTime) |
(package private) void |
restartNameNode(org.apache.hadoop.hbase.ServerName server,
long sleepTime) |
(package private) void |
restartRs(org.apache.hadoop.hbase.ServerName server,
long sleepTime) |
(package private) void |
restartZKNode(org.apache.hadoop.hbase.ServerName server,
long sleepTime) |
(package private) void |
sleep(long sleepTime) |
forceBalancer, getConf, getCurrentServers, getLogger, init, killDataNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, perform, resumeRs, setBalancer, startDataNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
long sleepTime
public RestartActionBaseAction(long sleepTime)
void sleep(long sleepTime)
void restartMaster(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
IOException
void gracefulRestartRs(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
server
- hostname to restart the regionserver onsleepTime
- number of milliseconds between stop and restartIOException
- if something goes wrongvoid restartRs(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
IOException
void restartZKNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
IOException
void restartDataNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
IOException
void restartNameNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.