public class UnbalanceRegionsAction extends Action
Action.ActionContext
Modifier and Type | Field and Description |
---|---|
private double |
fractionOfRegions |
private double |
fractionOfServers |
cluster, context, initialServers, initialStatus, KILL_DATANODE_TIMEOUT_DEFAULT, KILL_DATANODE_TIMEOUT_KEY, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, KILL_ZK_NODE_TIMEOUT_DEFAULT, KILL_ZK_NODE_TIMEOUT_KEY, killDataNodeTimeout, killMasterTimeout, killRsTimeout, killZkNodeTimeout, LOG, START_DATANODE_TIMEOUT_DEFAULT, START_DATANODE_TIMEOUT_KEY, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, START_ZK_NODE_TIMEOUT_DEFAULT, START_ZK_NODE_TIMEOUT_KEY, startDataNodeTimeout, startMasterTimeout, startRsTimeout, startZkNodeTimeout
Constructor and Description |
---|
UnbalanceRegionsAction(double fractionOfRegions,
double fractionOfServers)
Unbalances the regions on the cluster by choosing "target" servers, and moving
some regions from each of the non-target servers to random target servers.
|
Modifier and Type | Method and Description |
---|---|
void |
perform() |
forceBalancer, getConf, getCurrentServers, init, killDataNode, killMaster, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, startDataNode, startMaster, startRs, startZKNode, unbalanceRegions
private double fractionOfRegions
private double fractionOfServers
public UnbalanceRegionsAction(double fractionOfRegions, double fractionOfServers)
fractionOfRegions
- Fraction of regions to move from each server.fractionOfServers
- Fraction of servers to be chosen as targets.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.