Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 12041 invoked from network); 26 May 2009 20:26:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 May 2009 20:26:56 -0000 Received: (qmail 15091 invoked by uid 500); 26 May 2009 20:27:08 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 15023 invoked by uid 500); 26 May 2009 20:27:07 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 15013 invoked by uid 99); 26 May 2009 20:27:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 20:27:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2009 20:27:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9B1EA234C056 for ; Tue, 26 May 2009 13:26:45 -0700 (PDT) Message-ID: <649339885.1243369605634.JavaMail.jira@brutus> Date: Tue, 26 May 2009 13:26:45 -0700 (PDT) From: "Rodrigo Schmidt (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-5620) discp can preserve modification times of files In-Reply-To: <1227374814.1238741652993.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-5620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713232#action_12713232 ] Rodrigo Schmidt commented on HADOOP-5620: ----------------------------------------- - Dhruba told me modification times of directories are not persistent, that is, on namenode restart they are set to the latest modification time amongst the files they contain. - If we get atime inside the if, it will be the copy time (last access after copying the file) instead of the latest access time before copying, which is what we need for migration. > discp can preserve modification times of files > ---------------------------------------------- > > Key: HADOOP-5620 > URL: https://issues.apache.org/jira/browse/HADOOP-5620 > Project: Hadoop Core > Issue Type: Improvement > Components: tools/distcp > Reporter: dhruba borthakur > Assignee: Rodrigo Schmidt > Fix For: 0.21.0 > > Attachments: HADOOP-5620.patch > > > It will be helpful if distcp can preserve the modification time and access time of files. This helps to archive/unarchive hdfs files. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.