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

dfs rm and rmr commands differ from POSIX standards

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.1, 0.16.0
    • 0.17.0
    • None
    • None

    Description

      Assuming the dfs commands follow POSIX standards, there are some problems with the DFS rm and rmr commands. I compared the DFS output with that of RHEL 4u5:

      In both cases, if the file/directory does not exist, it will not give any indication to the user.

      1. rm a file/directory that does not exist:
      Linux: rm: cannot remove `testarea/two': No such file or directory
      DFS: rm: /testarea/two

      2. rmr a file/directory that does not exist:
      Linux: rm: cannot remove `testarea/two': No such file or directory
      DFS: rm: /testarea/two

      Attachments

        1. HADOOP-2193-1.patch
          2 kB
          Lohit Vijaya Renu
        2. hadoop_2193_4.patch
          2 kB
          Mahadev Konar
        3. hadoop_2193_3.patch
          2 kB
          Mahadev Konar
        4. hadoop_2193_2.patch
          2 kB
          Mahadev Konar
        5. hadoop_2193_1.patch
          3 kB
          Mahadev Konar

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mahadev Mahadev Konar Assign to me
            mukundm Mukund Madhugiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment