Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 18301 invoked from network); 29 Aug 2008 01:52:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2008 01:52:11 -0000 Received: (qmail 40843 invoked by uid 500); 29 Aug 2008 01:52:03 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 40833 invoked by uid 500); 29 Aug 2008 01:52:03 -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 40820 invoked by uid 99); 29 Aug 2008 01:52:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 18:52:03 -0700 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; Fri, 29 Aug 2008 01:51:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 63FC8234C1C3 for ; Thu, 28 Aug 2008 18:51:44 -0700 (PDT) Message-ID: <496555231.1219974704408.JavaMail.jira@brutus> Date: Thu, 28 Aug 2008 18:51:44 -0700 (PDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3939) DistCp should support an option for deleting non-existing files. In-Reply-To: <2089894246.1218571184182.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3939?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-3939: ------------------------------------------- Status: Patch Available (was: Open) submit again. > DistCp should support an option for deleting non-existing files. > ---------------------------------------------------------------- > > Key: HADOOP-3939 > URL: https://issues.apache.org/jira/browse/HADOOP-3939 > Project: Hadoop Core > Issue Type: New Feature > Components: tools/distcp > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Tsz Wo (Nicholas), SZE > Fix For: 0.19.0 > > Attachments: 3939_20080825.patch, 3939_20080825b.patch, 3939_20080826.patch, 3939_20080828.patch > > > One use case of DistCp is to sync two directories. Currently, DistCp has an -update option for overwriting dst files if src is different from dst. However, it is not enough for sync. If there are some files in dst but not exist in src, there is no easy way to delete them. We should add a new option, say -delete, so that DistCp will delete the non-existing in dst. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.