You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/07/20 08:00:00 UTC
[jira] [Commented] (HADOOP-16440) Distcp can not preserve timestamp
with -delete option
[ https://issues.apache.org/jira/browse/HADOOP-16440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16889409#comment-16889409 ]
Hudson commented on HADOOP-16440:
---------------------------------
FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #16961 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/16961/])
HADOOP-16440. Distcp can not preserve timestamp with -delete option. (ayushsaxena: rev e60f5e2572532e2bce44757997f1086065b8fd80)
* (edit) hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java
* (edit) hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/mapred/TestCopyCommitter.java
> Distcp can not preserve timestamp with -delete option
> ------------------------------------------------------
>
> Key: HADOOP-16440
> URL: https://issues.apache.org/jira/browse/HADOOP-16440
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 2.7.7, 3.1.2
> Reporter: ludun
> Assignee: ludun
> Priority: Major
> Attachments: HDFS-14261.001.patch, HDFS-14621.002.patch, HDFS-14621.003.patch, HDFS-14621.004.patch
>
>
> Use distcp with -prbugpcaxt and -delete to copy data between cluster.
> hadoop distcp -Dmapreduce.job.queuename="QueueA" -prbugpcaxt -update -delete hdfs://sourcecluster/user/hive/warehouse/sum.db hdfs://destcluster/user/hive/warehouse/sum.db
> After distcp, we found the timestamp of dest is different from source, and the timestamp of some directory was the time distcp running.
> Check the code of distcp, in CopyCommitter, it preserves time first then process -delete option which will change the timestamp of dest directory. So we should process -delete option first.
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org