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

dfs mv command differs from POSIX standards

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.15.1, 0.16.0
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      this patch makes dfs -mv more like linux mv command getting rid of unnecessary output in dfs -mv and returns an error message when moving non existent files/directories --- mv: cannot stat "filename": No such file or directory.

      Description

      Assuming the dfs commands follow POSIX standards, there are some problems with the DFS mv command. I compared the DFS output with that of RHEL 4u5

      1. mv a file:
      Linux: No output
      DFS: Renamed /testarea/hadoop-site.xml to test

      2. mv a file/directory that does not exist. The DFS file does not exist, but the output says it renamed the file:
      Linux: mv: cannot stat `testarea/one': No such file or directory
      DFS: mv: Rename failed /testarea/one

      3. mv a directory to another directory:
      Linux: No output
      DFS: Renamed /testarea to testarea2

        Attachments

        1. Hadoop-2192_1.patch
          2 kB
          Mahadev konar
        2. Hadoop-2192_2.patch
          3 kB
          Mahadev konar
        3. Hadoop-2192_3.patch
          3 kB
          Mahadev konar

          Issue Links

            Activity

              People

              • Assignee:
                mahadev Mahadev konar
                Reporter:
                mukundm Mukund Madhugiri
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: