Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 50762 invoked from network); 5 Dec 2009 01:52:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Dec 2009 01:52:22 -0000 Received: (qmail 45992 invoked by uid 500); 5 Dec 2009 01:52:20 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 45908 invoked by uid 500); 5 Dec 2009 01:52:20 -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 45898 invoked by uid 99); 5 Dec 2009 01:52:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 01:52:20 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ted.xu.ml@gmail.com designates 209.85.219.217 as permitted sender) Received: from [209.85.219.217] (HELO mail-ew0-f217.google.com) (209.85.219.217) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Dec 2009 01:52:18 +0000 Received: by ewy9 with SMTP id 9so1196685ewy.11 for ; Fri, 04 Dec 2009 17:51:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=1E9TPosqfLYM0LgDj9RkCd0kw4eD0aB91j5/o81UDik=; b=AzUn7I/FjM/ubV2w5/o+8aZBZLIV9NxzYuShIGfjJer/erFz2/45QyBI5WvkDzAFdO j6xbPRbMMYcumO0YSFUDWKM7YN1S0FC9dgUfZe3JG7iaDqcHxgy2HMNeX3QgME/kaqik SsUNV045c7wfI9GylSFuHDWGoYZNVyTBlMTRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RTNufWaSZgVCF7qAr6qUfoFU8VYap2+/45v63iGwCRnDtGUlvqMmBY+IQLipHj3I9m 3s9lwJTUa+Y0dB5sNtrbSpvXKqL80yoUf47WN+I70Be/Wngn2+aKAEKmEsDQHMQMC2m2 d4DaTsRgPnZElOaosFpXjgg11LKMHUvG/k2Xg= MIME-Version: 1.0 Received: by 10.216.86.9 with SMTP id v9mr1370508wee.148.1259977916281; Fri, 04 Dec 2009 17:51:56 -0800 (PST) In-Reply-To: <24774844.647271259972118270.JavaMail.root@zimbra> References: <24774844.647271259972118270.JavaMail.root@zimbra> Date: Sat, 5 Dec 2009 09:51:56 +0800 Message-ID: Subject: Re: Problem while writing a file from Reducer From: Ted Xu To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6da7ae31ff2f70479f1785b --0016e6da7ae31ff2f70479f1785b Content-Type: text/plain; charset=ISO-8859-1 Hello Parth, Once I met a similar problem while using user-defined recordwriter in reducer. That time I forgot to close the recordwriter in the close phase of reducer. 2009/12/5 Parth J. Brahmbhatt > Hello All, > > I am creating 2 files in the constructor of my reducer and I store the file > Handles as member variables. I write some data in these files for each call > to reduce method. For some reason the files are created but only the larger > file has data(The larger file is 400mb).The smaller file is created but no > data is written to it (The size should be around 4MB). I checked the hadoop > configuration and the buffer-size parameter is 4096. > > I padded some 100MB data to the smaller file and than this file gets around > 64MB data. I am clueless what is happening and if there is a solution to > this. Please share if you have faced similar problem or if you know the > solution. > > Thanks, > Parth Brahmbhatt > Best Regards, Ted Xu --0016e6da7ae31ff2f70479f1785b--