[
https://issues.apache.org/jira/browse/HADOOP-15211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507689#comment-16507689
]
Prashant Golash commented on HADOOP-15211:
------------------------------------------
I played around a bit more and it looks that I was wrong in my understanding.
-update and -overwrite does not prevent the user from having an <extra_file> at
target location which is not in the source. As such, preserving root
permissions would be asking to preserve permissions even for the <extra_files>.
Verified this in CopyCommitter.java that this behavior is intentional
----------------------------------------------------------------------------------------
//
// Skip the root folder when syncOrOverwrite is true.
//
if (targetRoot.equals(targetFile) && syncOrOverwrite) continue;
Closing the JIRA ([~zshao] for FYI)
> Distcp update not preserving root directory permissions
> -------------------------------------------------------
>
> Key: HADOOP-15211
> URL: https://issues.apache.org/jira/browse/HADOOP-15211
> Project: Hadoop Common
> Issue Type: Bug
> Components: tools/distcp
> Affects Versions: 2.6.0
> Reporter: Prashant Golash
> Priority: Minor
>
> "hadoop distcp -pugpb -update <SRC> <DEST>" does not preserve permission for
> <DEST> directory. Although, it preserves permissions for child directories
> (<DEST>/child1 etc.)
> Using hadoop-distcp', version:'2.6.0-cdh5.7.2
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]