Hadoop Common
  1. Hadoop Common
  2. HADOOP-6314

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      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
      
      1. CountHelp.patch
        0.6 kB
        Ravi Phulari
      2. CountHelp.patch
        0.5 kB
        Ravi Phulari

        Issue Links

          Activity

          Ravi Phulari created issue -
          Ravi Phulari made changes -
          Field Original Value New Value
          Attachment CountHelp.patch [ 12422202 ]
          Ravi Phulari made changes -
          Attachment CountHelp.patch [ 12422334 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags [Reviewed]
          Assignee Ravi Phulari [ raviphulari ]
          Component/s fs [ 12310689 ]
          Tsz Wo Nicholas Sze made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Tsz Wo Nicholas Sze made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.22.0 [ 12314296 ]
          Resolution Fixed [ 1 ]
          gary murry made changes -
          Link This issue blocks HADOOP-6316 [ HADOOP-6316 ]
          Tom White made changes -
          Fix Version/s 0.21.0 [ 12313563 ]
          Fix Version/s 0.22.0 [ 12314296 ]
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Ravi Phulari
              Reporter:
              Ravi Phulari
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development