hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tangshangwen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (MAPREDUCE-7096) Distcp cannot copy files of the same name in different directories
Date Fri, 11 May 2018 09:14:00 GMT

     [ 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


Mime
View raw message