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

fsck command can display command usage if user passes any illegal argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.20.1, 0.23.0
    • 0.23.0
    • None
    • None
    • Reviewed

    Description

      In fsck command if user passes the arguments like
      ./hadoop fsck -test -files -blocks -racks
      In this case it will take / and will display whole DFS information regarding to files,blocks,racks.

      But here, we are hiding the user mistake. Instead of this, we can display the command usage if user passes any invalid argument like above.

      If user passes illegal optional arguments like
      ./hadoop fsck /test -listcorruptfileblocks instead of
      ./hadoop fsck /test -list-corruptfileblocks also we can display the proper command usage

      Attachments

        1. HDFS-1727_3.patch
          3 kB
          sravankorumilli
        2. HDFS-1727.1.patch
          3 kB
          sravankorumilli
        3. HDFS-1727.patch
          4 kB
          sravankorumilli

        Activity

          People

            sravankorumilli sravankorumilli
            umamaheswararao Uma Maheswara Rao G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: