Issue Details (XML | Word | Printable)

Key: HADOOP-1916
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Chris Douglas
Reporter: Konstantin Shvachko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

FSShell put or CopyFromLocal incorrectly treats "."

Created: 18/Sep/07 06:21 PM   Updated: 10/Oct/07 09:56 PM
Return to search
Component/s: fs
Affects Version/s: 0.14.1
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 1916.patch 2007-09-24 10:54 PM Chris Douglas 1 kB
Issue Links:
Reference


 Description  « Hide
The following dfs shell command
bin/hadoop dfs -put README.txt .

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:

bin/hadoop dfs -mkdir .
bin/hadoop dfs -put README.txt .


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Hadoop QA added a comment - 25/Sep/07 04:03 AM
-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.


Chris Douglas added a comment - 25/Sep/07 04:50 AM
This is probably the wrong way to fix this.