Hadoop Common
  1. Hadoop Common
  2. HADOOP-2192

dfs mv command differs from POSIX standards

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

      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

          Gavin made changes -
          Link This issue is depended upon by HADOOP-1677 [ HADOOP-1677 ]
          Gavin made changes -
          Link This issue blocks HADOOP-1677 [ HADOOP-1677 ]
          Keegan Witt made changes -
          Link This issue relates to HADOOP-9382 [ HADOOP-9382 ]
          Owen O'Malley made changes -
          Component/s dfs [ 12310710 ]
          Nigel Daley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Mahadev konar made changes -
          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.
          Hadoop Flags [Incompatible change] [Incompatible change, Reviewed]
          Robert Chansler made changes -
          Hadoop Flags [Incompatible change]
          dhruba borthakur made changes -
          Fix Version/s 0.17.0 [ 12312913 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Mahadev konar made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Mahadev konar made changes -
          Attachment Hadoop-2192_3.patch [ 12375737 ]
          Mahadev konar made changes -
          Attachment Hadoop-2192_2.patch [ 12375736 ]
          Mahadev konar made changes -
          Comment [ this patch deletes the files after the test. ]
          Mahadev konar made changes -
          Attachment hadoop-2813_2.patch [ 12375704 ]
          Mahadev konar made changes -
          Attachment hadoop-2813_2.patch [ 12375704 ]
          Mahadev konar made changes -
          Attachment Hadoop-2192_1.patch [ 12375646 ]
          Mahadev konar made changes -
          Assignee Mahadev konar [ mahadev ]
          Nigel Daley made changes -
          Fix Version/s 0.16.0 [ 12312740 ]
          Mukund Madhugiri made changes -
          Field Original Value New Value
          Link This issue blocks HADOOP-1677 [ HADOOP-1677 ]
          Mukund Madhugiri created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development