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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.7.4
    • hdfs-client
    • None
    • 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

        1. HDFS-10747.000.patch
          2 kB
          Mingliang Liu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: