You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "tangshangwen (JIRA)" <ji...@apache.org> on 2018/05/11 09:14:00 UTC
[jira] [Resolved] (MAPREDUCE-7096) Distcp cannot copy files of the
same name in different directories
[ https://issues.apache.org/jira/browse/MAPREDUCE-7096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
tangshangwen resolved MAPREDUCE-7096.
-------------------------------------
Resolution: Fixed
> Distcp cannot copy files of the same name in different directories
> ------------------------------------------------------------------
>
> Key: MAPREDUCE-7096
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-7096
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Components: distcp
> Affects Versions: 2.7.3
> Reporter: tangshangwen
> Priority: Major
>
> 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: mapreduce-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: mapreduce-dev-help@hadoop.apache.org