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

dfs rm and rmr commands differ from POSIX standards

    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_4.patch
          2 kB
          Mahadev Konar
        2. hadoop_2193_3.patch
          2 kB
          Mahadev Konar
        3. hadoop_2193_2.patch
          2 kB
          Mahadev Konar
        4. hadoop_2193_1.patch
          3 kB
          Mahadev Konar
        5. HADOOP-2193-1.patch
          2 kB
          Lohit Vijaya Renu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: