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

o.a.h.hdfs.tools.DebugAdmin usage message is misleading

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.4
    • Component/s: hdfs-client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      HDFS-6917 added a helpful hdfs debug command to validate blocks and call recoverlease. The usage doc is kinda misleading, as following:

      $ hdfs debug verify
      creating a new configuration
      verify [-meta <metadata-file>] [-block <block-file>]
        Verify HDFS metadata and block files.  If a block file is specified, we
        will verify that the checksums in the metadata file match the block
        file.
      

      Actually the -meta <metadata-file> is necessary. [] is for optional arguments, if we follow the convention.

      $ hdfs debug recoverLease
      creating a new configuration
      recoverLease [-path <path>] [-retries <num-retries>]
        Recover the lease on the specified path.  The path must reside on an
        HDFS filesystem.  The default number of retries is 1.
      

      -path <path> is also the same case.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                liuml07 Mingliang Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: