hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Steelman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11009) Add Timestamp Preservation to DistCp
Date Mon, 01 Sep 2014 21:32:21 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14117736#comment-14117736
] 

Gary Steelman commented on HADOOP-11009:
----------------------------------------

The test failure is because TestCopyMapper.testSkipCopyNoPerms() sets up a test case for a
file with only READ permissions and then tries to preserve timestamps which requires WRITE
permissions. This is done using the preserveStatus variable it creates:
EnumSet<DistCpOptions.FileAttribute> preserveStatus =
          EnumSet.allOf(DistCpOptions.FileAttribute.class);
      preserveStatus.remove(DistCpOptions.FileAttribute.ACL);
      preserveStatus.remove(DistCpOptions.FileAttribute.XATTR);

Adding preserveStatus.remove(DistCpOptions.FileAttribute.TIMESTAMP) fixes this error locally.
Uploading patch shortly.

> Add Timestamp Preservation to DistCp
> ------------------------------------
>
>                 Key: HADOOP-11009
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11009
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: tools/distcp
>    Affects Versions: 2.4.0
>            Reporter: Gary Steelman
>         Attachments: HADOOP-11009.1.patch, HADOOP-11009.2.patch
>
>
> Currently access and modification times are not preserved on files copied using DistCp.
This patch adds an option to DistCp for timestamp preservation. 
> The patch ready, but I understand there is a Contributor form I need to sign before I
can upload it. Can someone point me in the right direction for this form? Thanks!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message