[ https://issues.apache.org/jira/browse/HADOOP-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721356#action_12721356 ]
Ravi Gummadi commented on HADOOP-6051: -------------------------------------- I just saw that the doc says something different from what I understood. But distcp -update works as I mentioned only. I rechecked now after looking at the doc. For the case of distcp -update foo/a foo/b bar mentioned in the doc, the effect of the command is creating bar/a/aa bar/a/ab bar/b/ba abd bar/b/bb. I guess we need to change the doc. OR Do we really need to change the behaviour of distcp ? > distcp does not skip copying file if we are updating single file > ---------------------------------------------------------------- > > Key: HADOOP-6051 > URL: https://issues.apache.org/jira/browse/HADOOP-6051 > Project: Hadoop Core > Issue Type: Bug > Components: tools/distcp > Affects Versions: 0.21.0 > Reporter: Ravi Gummadi > Fix For: 0.21.0 > > > distcp doesn't skip copying file when we do -update on single file if the > destfile already exists. > When we do > hadoop distcp -update srcfilename destfilename > it seems to be comparing checksums of srcfilename and > destfilename/srcfilename and so skip is not done. It should compare checksums > of srcfilename and destfilename. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.