java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hdfs.server.diskbalancer.command.Command
org.apache.hadoop.hdfs.server.diskbalancer.command.ReportCommand
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.conf.Configurable

public class ReportCommand extends Command
Executes the report command. This command will report volume information for a specific DataNode or top X DataNode(s) benefiting from running DiskBalancer. This is done by reading the cluster info, sorting the DiskbalancerNodes by their NodeDataDensity and printing out the info.
  • Constructor Details

    • ReportCommand

      public ReportCommand(org.apache.hadoop.conf.Configuration conf)
    • ReportCommand

      public ReportCommand(org.apache.hadoop.conf.Configuration conf, PrintStream ps)
  • Method Details

    • execute

      public void execute(org.apache.commons.cli.CommandLine cmd) throws Exception
      Description copied from class: Command
      Executes the Client Calls.
      Specified by:
      execute in class Command
      Parameters:
      cmd - - CommandLine
      Throws:
      Exception
    • printHelp

      public void printHelp()
      Prints the help message.
      Specified by:
      printHelp in class Command