public class PlanCommand extends 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 and Description | 
|---|
| PlanCommand(org.apache.hadoop.conf.Configuration conf)Constructs a plan command. | 
| PlanCommand(org.apache.hadoop.conf.Configuration conf,
           PrintStream ps)Constructs a plan command. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | execute(org.apache.commons.cli.CommandLine cmd)Runs the plan command. | 
| void | printHelp()Gets extended help for this command. | 
addValidCommandParameters, close, create, getClusterURI, getDataNodeProxy, getDefaultTop, getNodeList, getNodes, getOutputPath, getTopNodes, open, parseTopNodes, populatePathNames, readClusterInfo, recordOutput, setCluster, setClusterURI, setNodesToProcess, setNodesToProcess, setOutputPath, setTopNodes, verifyCommandOptionspublic PlanCommand(org.apache.hadoop.conf.Configuration conf)
public PlanCommand(org.apache.hadoop.conf.Configuration conf,
                   PrintStream ps)
public void execute(org.apache.commons.cli.CommandLine cmd)
             throws Exception
-plan -node IP -plan -node hostName -plan -node DatanodeUUID
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.