Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A308060B9 for ; Sun, 10 Jul 2011 13:32:26 +0000 (UTC) Received: (qmail 14100 invoked by uid 500); 10 Jul 2011 13:32:26 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 13994 invoked by uid 500); 10 Jul 2011 13:32:25 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 13978 invoked by uid 99); 10 Jul 2011 13:32:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 13:32:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Jul 2011 13:32:22 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 11FA742012 for ; Sun, 10 Jul 2011 13:32:01 +0000 (UTC) Date: Sun, 10 Jul 2011 13:32:01 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <2016532180.1205.1310304721070.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7361) Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options 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-7361?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HADOOP-7361: ------------------------------------------- Resolution: Fixed Fix Version/s: 0.23.0 Hadoop Flags: [Reviewed] Status: Resolved (was: Patch Available) I have committed this. Thanks, Uma! Also thanks Daryn for reviewing it. > Provide overwrite option (-overwrite/-f) in put and copyFromLocal command line options > -------------------------------------------------------------------------------------- > > Key: HADOOP-7361 > URL: https://issues.apache.org/jira/browse/HADOOP-7361 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Affects Versions: 0.20.1, 0.23.0 > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Priority: Minor > Fix For: 0.23.0 > > Attachments: HADOOP-7361-src.patch, HDFS-1608-src.patch, HDFS-1608-test.patch > > > FileSystem has the API > *public void copyFromLocalFile(boolean delSrc, boolean overwrite, Path[] srcs, Path dst)* > > > This API provides overwrite option. But the mapping command line doesn't have this option. To maintain the consistency and better usage the command line option also can support the overwrite option like to put the files forcefully. ( put [-f] ) and also for copyFromLocal command line option. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira