public class FillDiskCommandAction extends SudoCommandAction
Action.ActionContext| Modifier and Type | Field and Description |
|---|---|
private long |
duration |
private static org.slf4j.Logger |
LOG |
private String |
path |
private long |
size |
clusterManager, timeoutcluster, 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, 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 |
|---|
FillDiskCommandAction(long size,
long duration,
String path,
long timeout)
Fill the disk on a random regionserver.
|
| Modifier and Type | Method and Description |
|---|---|
private String |
getClearCommand() |
private String |
getFillCommand() |
private String |
getStopCommand() |
protected void |
localPerform() |
init, performforceBalancer, getConf, getCurrentServers, killDataNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, resumeRs, setBalancer, startDataNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegionsprivate static final org.slf4j.Logger LOG
private long size
private long duration
public FillDiskCommandAction(long size, long duration, String path, long timeout)
size - size of the generated file in MB or fill the disk if set to 0duration - the time this issue persists in millisecondspath - the path to the generated filetimeout - the timeout for executing required commands on the region server in millisecondsprotected void localPerform() throws IOException
localPerform in class SudoCommandActionIOExceptionprivate String getFillCommand()
private String getClearCommand()
private String getStopCommand()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.