Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.15.1, 0.16.0
-
None
-
None
-
Incompatible change, Reviewed
-
this patch makes dfs -mv more like linux mv command getting rid of unnecessary output in dfs -mv and returns an error message when moving non existent files/directories --- mv: cannot stat "filename": No such file or directory.
Description
Assuming the dfs commands follow POSIX standards, there are some problems with the DFS mv command. I compared the DFS output with that of RHEL 4u5
1. mv a file:
Linux: No output
DFS: Renamed /testarea/hadoop-site.xml to test
2. mv a file/directory that does not exist. The DFS file does not exist, but the output says it renamed the file:
Linux: mv: cannot stat `testarea/one': No such file or directory
DFS: mv: Rename failed /testarea/one
3. mv a directory to another directory:
Linux: No output
DFS: Renamed /testarea to testarea2
Attachments
Attachments
Issue Links
- is depended upon by
-
HADOOP-1677 improve semantics of the hadoop dfs command
- Closed
- relates to
-
HADOOP-9382 Add dfs mv overwrite option
- Patch Available