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

dfs mv command differs from POSIX standards

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate 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
    • Incompatible change, Reviewed
    • 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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment