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

Allen Wittenauer commented on HADOOP-11009:
-------------------------------------------

It doesn't look like -p automatically preserves time stamp:
{code}
$ bin/hadoop distcp -p /tmp /a1
...
$ bin/hadoop distcp -pt /tmp /a2
...
$ bin/hadoop fs -ls -R /
drwxr-x---   - aw hdfs          0 2014-09-23 13:52 /a1
-rw-r-----   3 aw hdfs        236 2014-09-23 13:52 /a1/hosts
drwxr-x---   - aw hdfs          0 2014-09-23 13:16 /a2
-rw-r-----   3 aw hdfs        236 2014-09-23 13:16 /a2/hosts
...
drwxr-x---   - aw hdfs          0 2014-09-23 13:16 /tmp
-rw-r-----   3 aw hdfs        236 2014-09-23 13:16 /tmp/hosts
...
{code}

> 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
>            Assignee: Gary Steelman
>         Attachments: HADOOP-11009.1.patch, HADOOP-11009.2.patch, 
> HADOOP-11009.3.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)

Reply via email to