Class RestartActionBaseAction
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.RestartActionBaseAction
- Direct Known Subclasses:
BatchRestartRsAction,GracefulRollingRestartRsAction,RestartActiveMasterAction,RestartActiveNameNodeAction,RestartRandomDataNodeAction,RestartRandomJournalNodeAction,RestartRandomRsAction,RestartRandomZKNodeAction,RestartRsHoldingMetaAction,RestartRsHoldingTableAction
Base class for restarting HBaseServer's
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.actions.Action
Action.ActionContext -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.chaos.actions.Action
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidgracefulRestartRs(org.apache.hadoop.hbase.ServerName server, long sleepTime) Stop and then restart the region server instead of killing it.(package private) voidrestartDataNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidrestartJournalNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidrestartMaster(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidrestartNameNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidrestartRs(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidrestartZKNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) (package private) voidsleep(long sleepTime) Methods inherited from class org.apache.hadoop.hbase.chaos.actions.Action
forceBalancer, getConf, getCurrentServers, getLogger, init, killDataNode, killJournalNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, perform, resumeRs, setBalancer, startDataNode, startJournalNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
-
Field Details
-
sleepTime
long sleepTime
-
-
Constructor Details
-
RestartActionBaseAction
-
-
Method Details
-
sleep
-
restartMaster
- Throws:
IOException
-
gracefulRestartRs
void gracefulRestartRs(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException Stop and then restart the region server instead of killing it.- Parameters:
server- hostname to restart the regionserver onsleepTime- number of milliseconds between stop and restart- Throws:
IOException- if something goes wrong
-
restartRs
- Throws:
IOException
-
restartZKNode
- Throws:
IOException
-
restartDataNode
- Throws:
IOException
-
restartNameNode
- Throws:
IOException
-
restartJournalNode
void restartJournalNode(org.apache.hadoop.hbase.ServerName server, long sleepTime) throws IOException - Throws:
IOException
-