You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2007/09/18 20:21:44 UTC

[jira] Created: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

FSShell put or CopyFromLocal incorrectly treats "."
---------------------------------------------------

                 Key: HADOOP-1916
                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
             Project: Hadoop
          Issue Type: Bug
    Affects Versions: 0.15.0
            Reporter: Konstantin Shvachko
             Fix For: 0.15.0


The following dfs shell command
{code}
bin/hadoop dfs -put README.txt .
{code}
results in creating a file /user/<user name> with the contents of README.txt.
A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
The put command works correctly if /user/<user name> already exists.
So the following sequence of command leads to the desired result:
{code}
bin/hadoop dfs -mkdir .
bin/hadoop dfs -put README.txt .
{code}


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


[jira] Updated: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Douglas updated HADOOP-1916:
----------------------------------

    Attachment: 1916.patch

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>             Fix For: 0.15.0
>
>         Attachments: 1916.patch
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Updated: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konstantin Shvachko updated HADOOP-1916:
----------------------------------------

    Affects Version/s:     (was: 0.15.0)
                       0.14.1

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>             Fix For: 0.15.0
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Updated: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Douglas updated HADOOP-1916:
----------------------------------

    Status: Open  (was: Patch Available)

This is probably the wrong way to fix this.

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>            Assignee: Chris Douglas
>             Fix For: 0.15.0
>
>         Attachments: 1916.patch
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Assigned: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Douglas reassigned HADOOP-1916:
-------------------------------------

    Assignee: Chris Douglas

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>            Assignee: Chris Douglas
>             Fix For: 0.15.0
>
>         Attachments: 1916.patch
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Commented: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530039 ] 

Hadoop QA commented on HADOOP-1916:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12366499/1916.patch
against trunk revision r579005.

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

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

    javac +1.  The applied patch does not generate any new compiler 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 failed contrib unit tests.

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

This message is automatically generated.

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>            Assignee: Chris Douglas
>             Fix For: 0.15.0
>
>         Attachments: 1916.patch
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Updated: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "Chris Douglas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Douglas updated HADOOP-1916:
----------------------------------

    Status: Patch Available  (was: Open)

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>             Fix For: 0.15.0
>
>         Attachments: 1916.patch
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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


[jira] Updated: (HADOOP-1916) FSShell put or CopyFromLocal incorrectly treats "."

Posted by "dhruba borthakur (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dhruba borthakur updated HADOOP-1916:
-------------------------------------

    Component/s: fs

> FSShell put or CopyFromLocal incorrectly treats "."
> ---------------------------------------------------
>
>                 Key: HADOOP-1916
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1916
>             Project: Hadoop
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.14.1
>            Reporter: Konstantin Shvachko
>             Fix For: 0.15.0
>
>
> The following dfs shell command
> {code}
> bin/hadoop dfs -put README.txt .
> {code}
> results in creating a file /user/<user name> with the contents of README.txt.
> A correct behavior would be creating a directory and a file in it: /user/<user name>/README.txt
> The put command works correctly if /user/<user name> already exists.
> So the following sequence of command leads to the desired result:
> {code}
> bin/hadoop dfs -mkdir .
> bin/hadoop dfs -put README.txt .
> {code}

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