Class PlanCommand
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hdfs.server.diskbalancer.command.Command
org.apache.hadoop.hdfs.server.diskbalancer.command.PlanCommand
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.conf.Configurable
Class that implements Plan Command.
Plan command reads the Cluster Info and creates a plan for specified data node or a set of Data nodes.
It writes the output to a default location unless changed by the user.
-
Constructor Summary
ConstructorsConstructorDescriptionPlanCommand(org.apache.hadoop.conf.Configuration conf) Constructs a plan command.PlanCommand(org.apache.hadoop.conf.Configuration conf, PrintStream ps) Constructs a plan command. -
Method Summary
Methods inherited from class org.apache.hadoop.hdfs.server.diskbalancer.command.Command
addValidCommandParameters, close, create, getClusterURI, getDataNodeProxy, getDefaultTop, getNodeList, getNodes, getOutputPath, getTopNodes, open, parseTopNodes, populatePathNames, readClusterInfo, recordOutput, setCluster, setClusterURI, setNodesToProcess, setNodesToProcess, setOutputPath, setTopNodes, verifyCommandOptionsMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConf
-
Constructor Details
-
PlanCommand
public PlanCommand(org.apache.hadoop.conf.Configuration conf) Constructs a plan command. -
PlanCommand
Constructs a plan command.
-
-
Method Details
-
execute
Runs the plan command. This command can be run with various options like-plan -node IP -plan -node hostName -plan -node DatanodeUUID
-
printHelp
public void printHelp()Gets extended help for this command.
-