[ https://issues.apache.org/jira/browse/HADOOP-10561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14013740#comment-14013740 ]
Yi Liu commented on HADOOP-10561: --------------------------------- In MAPREDUCE-5898, we add distcp support for preserving HDFS xattrs, and use option flag "-px". As [~andrew.wang] said, {{cp}} with "\-p" option doesn't preserve xattrs in linux, we should specify via "\-\-preserve=xattr" or "\-\-preserve=all". So we have two choices: - same as in linux, using "\-\-preserve" or "\-\-preserve=all" - simliar with distcp, using "-px" flag. According to Andrew's comment add make consistent with distcp, we choose option 2. > Copy command with preserve option should handle Xattrs > ------------------------------------------------------ > > Key: HADOOP-10561 > URL: https://issues.apache.org/jira/browse/HADOOP-10561 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Affects Versions: 3.0.0 > Reporter: Uma Maheswara Rao G > Assignee: Yi Liu > > The design docs for Xattrs stated that we handle preserve options with copy > commands > From doc: > Preserve option of commands like “cp -p” shell command and “distcp -p” should > work on XAttrs. > In the case of source fs supports XAttrs but target fs does not support, > XAttrs will be ignored > with warning message -- This message was sent by Atlassian JIRA (v6.2#6252)