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 3B74FDFEF for ; Mon, 18 Mar 2013 23:36:56 +0000 (UTC) Received: (qmail 14086 invoked by uid 500); 18 Mar 2013 23:36:51 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 13985 invoked by uid 500); 18 Mar 2013 23:36:51 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 13978 invoked by uid 99); 18 Mar 2013 23:36:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Mar 2013 23:36:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh@cloudera.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Mar 2013 23:36:45 +0000 Received: by mail-oa0-f42.google.com with SMTP id i18so6365895oag.29 for ; Mon, 18 Mar 2013 16:36:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding :x-gm-message-state; bh=S/C2J1BGDE+oTbZqR6RiD5VUsY7whQhK+cAnPQbbSGo=; b=act7nMtZjFFLtlKHuT+ZDwgdmqZPp/Qs6pz38a7+RaFwz7EXwD6RImADNrn/v+QbHU 18Lu5f4sU74d+a/H2EvY+GOWoXlpyCpYxkfnZZmM2bemJou6fLMoOB4NiBkgjpOVrdyo iACPoG8E81Boz+Ptjfzrms9msnpst+1QrpyhPdr+JUAWynubMWBPNeIiTqXX3gszdROh LXgcweGn6/0JXuTN2TXu7C+VTY98zr/MfqeM/kfyDor05ddfqAX4uNOK+w7XkcvD5VC1 fRmHAGmYd4eJ9UXrTcK/a9oFHZ3Z2oC+iIQD4EQVcKHpaVGHiu9y8QuLSq4U7sz/KD/N +Aug== X-Received: by 10.60.3.41 with SMTP id 9mr7663373oez.53.1363649784647; Mon, 18 Mar 2013 16:36:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.132.44 with HTTP; Mon, 18 Mar 2013 16:36:04 -0700 (PDT) In-Reply-To: <556325346CA26341B6F0530E07F90D96017084360539@GBGH-EXCH-CMS.sig.ads> References: <556325346CA26341B6F0530E07F90D96017084360539@GBGH-EXCH-CMS.sig.ads> From: Harsh J Date: Tue, 19 Mar 2013 05:06:04 +0530 Message-ID: Subject: Re: hadoop file append To: "" Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlDbMCoSS8WkHhKkpgVPeP1DgDsDhnF7lFK6KUMYLTKBh5ZeqbqBawmYCQiJymx2op4uAr/ X-Virus-Checked: Checked by ClamAV on apache.org Appending on 1.x releases is available but not tested/supported and can be toggled to be disabled completely. Appending works better on 2.x releases. On Mon, Mar 18, 2013 at 9:14 PM, Tony Burton wr= ote: > Hi list, > > > > I=92m using Hadoop 1.0.3 for a MapReduce task and I thought it might be a > simple job to append a Counter value and some text to the end of a file > (which ultimately will be in AWS S3). How wrong I was :) > > > > I=92ve been reading about o.a.h.fs.FileSystem.append and whether it does = or > doesn=92t work in my version of hadoop, and I'm not sure if it does or no= t. > Can anyone say for definite either way? I'm going with the conclusion tha= t > it can't be trusted to perform as expected. > > > > What I'd like to do is this: Perform a daily MapReduce job and add up som= e > some values along the way, and as well as the output of the MR job, add t= hat > day's date with the Counter value to the end of a file (in a different > location), so the file grows by one line daily. Assuming > o.a.h.fs.FileSystem.append is currently out of favour, do you have any > suggestions for achieving this? > > > > Thanks! > > > > Tony > > > > > *************************************************************************= **** > P Please consider the environment before printing this email or attachmen= ts > > > This email and any attachments are confidential, protected by copyright a= nd > may be legally privileged. If you are not the intended recipient, then th= e > dissemination or copying of this email is prohibited. If you have receive= d > this in error, please notify the sender by replying by email and then del= ete > the email completely from your system. Neither Sporting Index nor the sen= der > accepts responsibility for any virus, or any other defect which might aff= ect > any computer or IT system into which the email is received and/or opened.= It > is the responsibility of the recipient to scan the email and no > responsibility is accepted for any loss or damage arising in any way from > receipt or use of this email. Sporting Index Ltd is a company registered = in > England and Wales with company number 2636842, whose registered office is= at > Gateway House, Milverton Street, London, SE11 4AP. Sporting Index Ltd is > authorised and regulated by the UK Financial Services Authority (reg. no. > 150404) and Gambling Commission (reg. no. 000-027343-R-308898-001). Any > financial promotion contained herein has been issued and approved by > Sporting Index Ltd. > > > Outbound email has been scanned for viruses and SPAM -- Harsh J