Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.14.1
-
None
-
None
Description
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 .
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-1891 "." is converted to an empty path
- Closed
- is superceded by
-
HADOOP-7320 Refactor FsShell's copy & move commands
- Closed
- relates to
-
HADOOP-2025 Instantiating a FileSystem object should guarantee the existence of the working directory
- Resolved