Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6314

"bin/hadoop fs -help count" fails to show help about only "count" command.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • fs
    • None
    • Reviewed

    Description

      Currently "hadoop fs -help count" fails to show help about only count command.
      Instead it displays following output

      [rphulari@statepick-lm]> bin/hadoop fs -help count
      hadoop fs is the command to execute fs commands. The full syntax is: 
      
      hadoop fs [-fs <local | file system URI>] [-conf <configuration file>]
      	[-D <property=value>] [-ls <path>] [-lsr <path>] [-df [<path>]] [-du <path>]
      	[-dus <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm [-skipTrash] <src>]
      	[-rmr [-skipTrash] <src>] [-put <localsrc> ... <dst>] [-copyFromLocal <localsrc> ... <dst>]
      	[-moveFromLocal <localsrc> ... <dst>] [-get [-ignoreCrc] [-crc] <src> <localdst>
      	[-getmerge <src> <localdst> [addnl]] [-cat <src>]
      	[-copyToLocal [-ignoreCrc] [-crc] <src> <localdst>] [-moveToLocal <src> <localdst>]
      	[-mkdir <path>] [-report] [-setrep [-R] [-w] <rep> <path/file>]
      	[-touchz <path>] [-test -[ezd] <path>] [-stat [format] <path>]
      	[-tail [-f] <path>] [-text <path>]
      
      ..
      ..
      ..
      
      

      Expected output of "bin/hadoop fs -help count " should be

      [rphulari@statepick-lm]> bin/hadoop  fs -help count
      -count[-q] <path>: Count the number of directories, files and bytes under the paths
      		that match the specified file pattern.  The output columns are:
      		DIR_COUNT FILE_COUNT CONTENT_SIZE FILE_NAME or
      		QUOTA REMAINING_QUATA SPACE_QUOTA REMAINING_SPACE_QUOTA 
      		      DIR_COUNT FILE_COUNT CONTENT_SIZE FILE_NAME
      

      Attachments

        1. CountHelp.patch
          0.5 kB
          Ravi Phulari
        2. CountHelp.patch
          0.6 kB
          Ravi Phulari

        Issue Links

          Activity

            People

              raviphulari Ravi Phulari
              raviphulari Ravi Phulari
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: