Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6A4DC4CA for ; Thu, 3 May 2012 22:48:00 +0000 (UTC) Received: (qmail 248 invoked by uid 500); 3 May 2012 22:47:57 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 187 invoked by uid 500); 3 May 2012 22:47:57 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 177 invoked by uid 99); 3 May 2012 22:47:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 22:47:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of himanshuvj@gmail.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gy0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 22:47:52 +0000 Received: by ghbz10 with SMTP id z10so1156022ghb.35 for ; Thu, 03 May 2012 15:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aVc0IMsMZrfAizfdwk076rSp6QloAuM4S5xZBr44VKA=; b=TmqJJ7t4hY8zBq8HHEuNISmAugCdh8pj7CAi6iqtKt+k3nwmO7b/3yokghpN4bV0OR dUr9SiRDMBbKHzLRzTM2bTYIMyf/Ml97E553VIv6q8fuPlwgWrdyCPlwhJPODp4wqq/4 WFk/BSaLPNnxOf1ZeLMJnip+E84fIuo8GIZXbEhS5H//CSO7IRLiLuhKeiq3MkRgIV/0 woerYx92OhPFqAqf9HmcrbdN8hFEyV3HlZykJP/naScxEopK1keUGmSqkoREBaNRecpw ueiHvk12257PBgrmei8fq4G4N7wW/MxwsJjevVKIPjrqz8VtzTmjkvYlrLdFekDwjxjZ 08oA== Received: by 10.50.178.71 with SMTP id cw7mr1514556igc.19.1336085252111; Thu, 03 May 2012 15:47:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.132.106 with HTTP; Thu, 3 May 2012 15:47:11 -0700 (PDT) In-Reply-To: <1786E485-FE5A-44A1-9B60-8F55B38C3014@89clouds.com> References: <1786E485-FE5A-44A1-9B60-8F55B38C3014@89clouds.com> From: Himanshu Vijay Date: Thu, 3 May 2012 15:47:11 -0700 Message-ID: Subject: Re: Splitting data input to Distcp To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f923aa4d77d6b04bf2996f6 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f923aa4d77d6b04bf2996f6 Content-Type: text/plain; charset=ISO-8859-1 Pedro, Thanks for the response. Unfortunately I am running it on in-house cluster and from there I need to upload to S3. -Himanshu On Wed, May 2, 2012 at 2:03 PM, Pedro Figueiredo wrote: > > On 2 May 2012, at 18:29, Himanshu Vijay wrote: > > > Hi, > > > > I have 100 files each of ~3 GB. I need to distcp them to S3 but copying > > fails because of large size of files. The files are not gzipped so they > are > > splittable. Is there a way or property to tell Distcp to first split the > > input files into let's say 200 MB or N lines each before copying to > > destination. > > > > Assuming you're using EMR, use s3distcp: > > > http://docs.amazonwebservices.com/ElasticMapReduce/latest/DeveloperGuide/UsingEMR_s3distcp.html > > In any case, that's strange because S3's limit is 5GB per PUT request; > again if you're running on EMR, try starting your cluster with > > --bootstrap-action > s3://elasticmapreduce/bootstrap-actions/configure-hadoop \ > --args > "-c,fs.s3n.multipart.uploads.enabled=true,-c,fs.s3n.multipart.uploads.split.size=524288000" > > (or add those to whatever parameters you currently use). > > Going back to plain distcp, I'm not sure about what the -sizelimit option > does, as I've never used it. > > If push comes to shove, seeing as you have a Hadoop cluster, running a job > to write the files to S3 with compression enabled is always an option :) > > Cheers, > > Pedro Figueiredo > Skype: pfig.89clouds > http://89clouds.com/ - Big Data Consulting > > > > > -- -Himanshu Vijay --e89a8f923aa4d77d6b04bf2996f6--