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 30C0EF129 for ; Sat, 20 Apr 2013 16:06:53 +0000 (UTC) Received: (qmail 73453 invoked by uid 500); 20 Apr 2013 16:06:48 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 73126 invoked by uid 500); 20 Apr 2013 16:06:48 -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 73119 invoked by uid 99); 20 Apr 2013 16:06:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Apr 2013 16:06:48 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jayunit100@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Apr 2013 16:06:42 +0000 Received: by mail-ob0-f172.google.com with SMTP id v19so4252121obq.31 for ; Sat, 20 Apr 2013 09:06:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:x-mailer:from:subject:date :to; bh=8YRXS2DBsBsESyUMo5n/7oxXe/azl7r7zL6v38p+qz0=; b=mcguVaRn4s/ViOl77n5IWnBlmzX7bipJgNrWGzH3Ny/6inftiINoLXH3RCmFx4Yq30 X0Q5a1a4iJd6RzodluPqYpiXoxqnpUS/v1VKrsHQQDQ9P/9tg5POQSjI90fIJBJxhwZb 1g87yG0ecvWjOoQCyCoFojtaocIPUJjilLeZ3yP/gB/n5vUmqtmFsl1gGGu5Ji7VWb/D FCSK+Aik+GoZj7huSXAW9PEyz1pSNJlUuAWuTBQGnF1rwHHZAFGtXmXpDFAXJTsE3Qz2 wtA5t/oLo/+zTHe4+H1xa34eLDf7eC1Y2JSLZL/S2GxgEUsItYNCy2JMU20jX5maStr3 KPSQ== X-Received: by 10.182.123.49 with SMTP id lx17mr6076091obb.63.1366473981574; Sat, 20 Apr 2013 09:06:21 -0700 (PDT) Received: from [10.42.219.4] (mobile-166-147-078-183.mycingular.net. [166.147.78.183]) by mx.google.com with ESMTPS id w7sm10632756obx.9.2013.04.20.09.06.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Apr 2013 09:06:20 -0700 (PDT) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-9795B762-0049-4D2A-ABB0-019D79541150 Content-Transfer-Encoding: 7bit Message-Id: <8849328B-D716-4CBF-AA93-17BF04E51D7B@gmail.com> Cc: "user@hadoop.apache.org" X-Mailer: iPhone Mail (10B146) From: Jay Vyas Subject: Re: Writing intermediate key,value pairs to file and read it again Date: Sat, 20 Apr 2013 11:06:18 -0500 To: "user@hadoop.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-9795B762-0049-4D2A-ABB0-019D79541150 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable How many intermediate keys? If small enough, you can keep them in memory. I= f large, you can just wait for the job to finish and siphon them into your j= ob as input with the MultipleInputs API. On Apr 20, 2013, at 10:43 AM, Vikas Jadhav wrote:= > Hello, > Can anyone help me in following issue > Writing intermediate key,value pairs to file and read it again >=20 > let us say i have to write each intermediate pair received @reducer to a f= ile and again read that as key value pair again and use it for processing >=20 > I found IFile.java file which has reader and writer but i am not able unde= rstand how to use it for example. I dont understand Counter value as last pa= rameter "spilledRecordsCounter"=20 >=20 >=20 > Thanks. >=20 >=20 > --=20 >=20 >=20 > Regards, > Vikas --Apple-Mail-9795B762-0049-4D2A-ABB0-019D79541150 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
How many intermediate keys? If small enough, you can keep them in memory.  If large, you can just wait for the job to finish and siphon them into your job as input with the MultipleInputs API.



On Apr 20, 2013, at 10:43 AM, Vikas Jadhav <vikascjadhav87@gmail.com> wrote:

Hello,
Can anyone help me in following issue
Writing intermediate key,value pairs to file and read it again

let us say i have to write each intermediate pair received @reducer to a file and again read that as key value pair again and use it for processing

I found IFile.java file which has reader and writer but i am not able understand how to use it for example. I dont understand Counter value as last parameter "spilledRecordsCounter"


Thanks.


--


  Regards,
   Vikas
--Apple-Mail-9795B762-0049-4D2A-ABB0-019D79541150--