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

Key: HADOOP-3012
URL: https://issues.apache.org/jira/browse/HADOOP-3012
Project: Hadoop Core
Issue Type: Bug
Components: fs
Affects Versions: 0.17.0
Reporter: Mukund Madhugiri
Assignee: Robert Chansler
Priority: Blocker
Fix For: 0.17.0


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.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Mukund Madhugiri (JIRA) at Mar 13, 2008 at 9:04 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578489#action_12578489 ]

    Mukund Madhugiri commented on HADOOP-3012:
    ------------------------------------------

    This worked yesterday and the changes since then are:

    HADOOP-2423. Code optimization in FSNamesystem.mkdirs.
    HADOOP-2908. A document that describes the DFS Shell command.
    HADOOP-2994. Code cleanup for DFSClient: remove redundant conversions from string to string.
    HADOOP-2972. Fix for a NPE in FSDataset.invalidate.
    HADOOP-2995. Fixes StreamBaseRecordReader's getProgress to return a floating point number.
    HADOOP-2996. Fixes uses of StringBuffer in StreamUtils class.

    I suspect the first one is the cause:
    HADOOP-2423. Code optimization in FSNamesystem.mkdirs.
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Robert Chansler
    Priority: Blocker
    Fix For: 0.17.0


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mahadev konar (JIRA) at Mar 13, 2008 at 9:34 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578497#action_12578497 ]

    Mahadev konar commented on HADOOP-3012:
    ---------------------------------------

    alos looks like dfs -mv file /absolutepathtodir does not work....
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Robert Chansler
    Priority: Blocker
    Fix For: 0.17.0


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mukund Madhugiri (JIRA) at Mar 17, 2008 at 8:40 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579590#action_12579590 ]

    Mukund Madhugiri commented on HADOOP-3012:
    ------------------------------------------

    I traced it back using the nightly builds and it was a while ago (the new tests I am writing caught it!) and narrowed it down to this set of JIRA's (pls ignore previous list). Seems like HADOOP-2192 is the obvious one?

    HADOOP-2769. TestNNThroughputBnechmark should not use a fixed port for the namenode http port.
    HADOOP-2192. Error messages from "dfs mv" command improved.
    HADOOP-2178. Job History on DFS.
    HADOOP-2730. HOD documentation update.
    HADOOP-2371. Commit for the html/pdf docs.
    HADOOP-2371. Commit for the html/pdf docs.
    HADOOP-2766. Enables setting of HADOOP_OPTS env variable for the hadoop daemons through HOD.
    HADOOP-2840. Fix gridmix scripts to correctly invoke the java sort through the proper jar.

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

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Robert Chansler
    Priority: Blocker
    Fix For: 0.17.0


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mahadev konar (JIRA) at Mar 17, 2008 at 10:50 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Mahadev konar reassigned HADOOP-3012:
    -------------------------------------

    Assignee: Mahadev konar (was: Robert Chansler)
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mahadev konar (JIRA) at Mar 17, 2008 at 10:50 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579654#action_12579654 ]

    Mahadev konar commented on HADOOP-3012:
    ---------------------------------------

    most likely it is hadoop-2192. Let me take a look and upload a fix ...
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mahadev konar (JIRA) at Mar 19, 2008 at 12:26 am
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Mahadev konar updated HADOOP-3012:
    ----------------------------------

    Attachment: HADOOP-3012_1.patch

    this patch fixes the issue and errors out on -mv option. It is consistent with last versiosn of hadoop that -mv does not create the parent directories...
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • lohit vijayarenu (JIRA) at Mar 19, 2008 at 6:20 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580485#action_12580485 ]

    lohit vijayarenu commented on HADOOP-3012:
    ------------------------------------------

    +1 to throw exception as earlier. Looks good
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Mahadev konar (JIRA) at Mar 19, 2008 at 6:26 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Mahadev konar updated HADOOP-3012:
    ----------------------------------

    Status: Patch Available (was: Open)
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hadoop QA (JIRA) at Mar 20, 2008 at 10:29 am
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580722#action_12580722 ]

    Hadoop QA commented on HADOOP-3012:
    -----------------------------------

    +1 overall. Here are the results of testing the latest attachment
    http://issues.apache.org/jira/secure/attachment/12378190/HADOOP-3012_1.patch
    against trunk revision 619744.

    @author +1. The patch does not contain any @author tags.

    tests included +1. The patch appears to include 6 new or modified tests.

    javadoc +1. The javadoc tool did not generate any warning messages.

    javac +1. The applied patch does not generate any new javac compiler warnings.

    release audit +1. The applied patch does not generate any new release audit warnings.

    findbugs +1. The patch does not introduce any new Findbugs warnings.

    core tests +1. The patch passed core unit tests.

    contrib tests +1. The patch passed contrib unit tests.

    Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2009/testReport/
    Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2009/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
    Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2009/artifact/trunk/build/test/checkstyle-errors.html
    Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2009/console

    This message is automatically generated.
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • dhruba borthakur (JIRA) at Mar 20, 2008 at 5:19 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    dhruba borthakur updated HADOOP-3012:
    -------------------------------------

    Resolution: Fixed
    Status: Resolved (was: Patch Available)

    I just committed this. Thanks Mahadev!
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Hudson (JIRA) at Mar 21, 2008 at 12:21 pm
    [ https://issues.apache.org/jira/browse/HADOOP-3012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581069#action_12581069 ]

    Hudson commented on HADOOP-3012:
    --------------------------------

    Integrated in Hadoop-trunk #435 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/435/])
    dfs -mv file to user home directory fails silently if the user home directory does not exist
    --------------------------------------------------------------------------------------------

    Key: HADOOP-3012
    URL: https://issues.apache.org/jira/browse/HADOOP-3012
    Project: Hadoop Core
    Issue Type: Bug
    Components: fs
    Affects Versions: 0.17.0
    Reporter: Mukund Madhugiri
    Assignee: Mahadev konar
    Priority: Blocker
    Fix For: 0.17.0

    Attachments: HADOOP-3012_1.patch


    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.
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedMar 13, '08 at 8:16p
activeMar 21, '08 at 12:21p
posts12
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Hudson (JIRA): 12 posts

People

Translate

site design / logo © 2022 Grokbase