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

dfs -mv file to user home directory fails silently if the user home directory does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.17.0
    • 0.17.0
    • fs
    • None

    Description

      dfs -mv file to user home directory fails silently if the user home directory does not exist. This was working before. It will move the file if the user home directory exists.

      Here is the sequence:
      1. bin/hadoop dfs -lsr /
      /file1 <r 3> 0 2008-03-13 19:54 rw-r-r- hadoopqa supergroup

      2. bin/hadoop dfs -mv /file1 file2

      3. bin/hadoop dfs -lsr /
      /file1 <r 3> 0 2008-03-13 19:54 rw-r-r- hadoopqa supergroup

      4. hadoop dfs -lsr /
      /file1 <r 3> 0 2008-03-13 19:54 rw-r-r- hadoopqa supergroup
      /user <dir> 2008-03-13 20:07 rwxr-xr-x hadoopqa supergroup
      /user/hadoopqa <dir> 2008-03-13 20:07 rwxr-xr-x hadoopqa supergroup
      /user/hadoopqa/file0 <r 3> 0 2008-03-13 20:07 rw-r-r- hadoopqa supergroup

      5. bin/hadoop dfs -mv /file1 file2

      6. bin/hadoop dfs -lsr /
      /user <dir> 2008-03-13 20:07 rwxr-xr-x hadoopqa supergroup
      /user/hadoopqa <dir> 2008-03-13 20:08 rwxr-xr-x hadoopqa supergroup
      /user/hadoopqa/file0 <r 3> 0 2008-03-13 20:07 rw-r-r- hadoopqa supergroup
      /user/hadoopqa/file2 <r 3> 0 2008-03-13 19:54 rw-r-r- hadoopqa supergroup

      In step #2, it fails to move the file.
      In step #5, it moves the file as /user/hadoopqa directory exists.

      Attachments

        1. HADOOP-3012_1.patch
          1 kB
          Mahadev Konar

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: