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 DC61617227 for ; Fri, 30 Jan 2015 19:06:39 +0000 (UTC) Received: (qmail 22254 invoked by uid 500); 30 Jan 2015 19:06:37 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 22201 invoked by uid 500); 30 Jan 2015 19:06:37 -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 22130 invoked by uid 99); 30 Jan 2015 19:06:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2015 19:06:37 +0000 Date: Fri, 30 Jan 2015 19:06:37 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HADOOP-11281) Add flag to fs.shell to skip _COPYING_ file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Nauroth resolved HADOOP-11281. ------------------------------------ Resolution: Duplicate > Add flag to fs.shell to skip _COPYING_ file > ------------------------------------------- > > Key: HADOOP-11281 > URL: https://issues.apache.org/jira/browse/HADOOP-11281 > Project: Hadoop Common > Issue Type: Improvement > Components: fs, fs/s3 > Environment: Hadoop 2.2 but is in all of them. > AWS EMR 3.0.4 > Reporter: Corby Wilson > Priority: Critical > > Amazon S3 does not have a rename feature. > When you use the hadoop shell or distcp feature, hadoop first uploads the file using the ._COPYING_ extension, then renames the file to the final output. > Code: > org/apache/hadoop/fs/shell/CommandWithDestination.java > PathData tempTarget = target.suffix("._COPYING_"); > targetFs.setWriteChecksum(writeChecksum); > targetFs.writeStreamToFile(in, tempTarget, lazyPersist); > targetFs.rename(tempTarget, target); > The problem is that on rename, we actually have to download the file again (through an InputStream), then upload it again. > For very large files (>= 5GB) we have to use multipart upload. > So if we are processing several TB of multi GB files, we are actually writing the file to S3 twice and reading it once from S3. > It would be nice to have a flag or core-site.xml setting that allowed us to tell hadoop to skip the copy and just write the file once. -- This message was sent by Atlassian JIRA (v6.3.4#6332)