Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-16282

Duplicate generic usage information to hdfs debug command

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      When we type 'hdfs debug' in console, the generic usage information will be repeated 4 times and the target command like 'verifyMeta' or 'recoverLease' seems hard to find.

      ~ $ hdfs debug
      Usage: hdfs debug <command> [arguments]

      These commands are for advanced users only.

      Incorrect usages may result in data loss. Use at your own risk.

      verifyMeta -meta <metadata-file> [-block <block-file>]

      Generic options supported are:
      -conf <configuration file> specify an application configuration file
      -D <property=value> define a value for a given property
      -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, overrides 'fs.defaultFS' property from configurations.
      -jt <local|resourcemanager:port> specify a ResourceManager
      -files <file1,...> specify a comma-separated list of files to be copied to the map reduce cluster
      -libjars <jar1,...> specify a comma-separated list of jar files to be included in the classpath
      -archives <archive1,...> specify a comma-separated list of archives to be unarchived on the compute machines

      The general command line syntax is:
      command [genericOptions] [commandOptions]

      computeMeta -block <block-file> -out <output-metadata-file>

      Generic options supported are:
      -conf <configuration file> specify an application configuration file
      -D <property=value> define a value for a given property
      -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, overrides 'fs.defaultFS' property from configurations.
      -jt <local|resourcemanager:port> specify a ResourceManager
      -files <file1,...> specify a comma-separated list of files to be copied to the map reduce cluster
      -libjars <jar1,...> specify a comma-separated list of jar files to be included in the classpath
      -archives <archive1,...> specify a comma-separated list of archives to be unarchived on the compute machines

      The general command line syntax is:
      command [genericOptions] [commandOptions]

      recoverLease -path <path> [-retries <num-retries>]

      Generic options supported are:
      -conf <configuration file> specify an application configuration file
      -D <property=value> define a value for a given property
      -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, overrides 'fs.defaultFS' property from configurations.
      -jt <local|resourcemanager:port> specify a ResourceManager
      -files <file1,...> specify a comma-separated list of files to be copied to the map reduce cluster
      -libjars <jar1,...> specify a comma-separated list of jar files to be included in the classpath
      -archives <archive1,...> specify a comma-separated list of archives to be unarchived on the compute machines

      The general command line syntax is:
      command [genericOptions] [commandOptions]

      Generic options supported are:
      -conf <configuration file> specify an application configuration file
      -D <property=value> define a value for a given property
      -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, overrides 'fs.defaultFS' property from configurations.
      -jt <local|resourcemanager:port> specify a ResourceManager
      -files <file1,...> specify a comma-separated list of files to be copied to the map reduce cluster
      -libjars <jar1,...> specify a comma-separated list of jar files to be included in the classpath
      -archives <archive1,...> specify a comma-separated list of archives to be unarchived on the compute machines

      The general command line syntax is:
      command [genericOptions] [commandOptions]

       

       

       

      Attachments

        Issue Links

          Activity

            People

              cndaimin daimin
              cndaimin daimin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h