Class MoveRegionsOfTableAction
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.MoveRegionsOfTableAction
Action that tries to move every region of a table.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.actions.Action
Action.ActionContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final longprivate final longprivate final org.apache.hadoop.hbase.TableNameFields 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
ConstructorsConstructorDescriptionMoveRegionsOfTableAction(long sleepTime, long maxSleepTime, org.apache.hadoop.hbase.TableName tableName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.LoggerRetrieve the instance'sLogger, for use throughout the class hierarchy.(package private) static org.apache.hadoop.hbase.ServerName[]getServers(org.apache.hadoop.hbase.client.Admin admin) (package private) static voidmoveRegion(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.ServerName[] servers, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.slf4j.Logger logger) voidperform()Methods inherited from class org.apache.hadoop.hbase.chaos.actions.Action
forceBalancer, getConf, getCurrentServers, init, killDataNode, killJournalNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, resumeRs, setBalancer, startDataNode, startJournalNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
-
Field Details
-
LOG
-
sleepTime
-
tableName
-
maxTime
-
-
Constructor Details
-
MoveRegionsOfTableAction
public MoveRegionsOfTableAction(long sleepTime, long maxSleepTime, org.apache.hadoop.hbase.TableName tableName)
-
-
Method Details
-
getLogger
Description copied from class:ActionRetrieve the instance'sLogger, for use throughout the class hierarchy. -
perform
-
getServers
static org.apache.hadoop.hbase.ServerName[] getServers(org.apache.hadoop.hbase.client.Admin admin) throws IOException - Throws:
IOException
-
moveRegion
static void moveRegion(org.apache.hadoop.hbase.client.Admin admin, org.apache.hadoop.hbase.ServerName[] servers, org.apache.hadoop.hbase.client.RegionInfo regionInfo, org.slf4j.Logger logger)
-