Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.3
-
None
-
None
Description
When I tested distcp, I found that I could not copy files with the same name in different directories,here is my test case:
source:
/user/hadoop/dir1/a.txt
/user/hadoop/dir2/a.txt
target
/tmp/dist-cp/
hadoop distcp -m 2 -overwrite /user/hadoop/dir* /tmp/dist-cp/
result: failed
source:
/user/hadoop/dir1/a.txt
/user/hadoop/dir2/b.txt
target:
/tmp/dist-cp/
hadoop distcp -m 2 -overwrite /user/hadoop/dir* /tmp/dist-cp/
result: success