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 43CA192CF for ; Tue, 12 Mar 2013 10:49:12 +0000 (UTC) Received: (qmail 96195 invoked by uid 500); 12 Mar 2013 10:49:07 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 95907 invoked by uid 500); 12 Mar 2013 10:49:06 -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 95886 invoked by uid 99); 12 Mar 2013 10:49:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 10:49:06 +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 (nike.apache.org: domain of samir.helpdoc@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vc0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Mar 2013 10:49:00 +0000 Received: by mail-vc0-f180.google.com with SMTP id fo13so2604421vcb.11 for ; Tue, 12 Mar 2013 03:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=YrHIqW7dZQ59tATC3sAO86lD7Mm653p4eQBV2Qf1Psk=; b=g9ICRcz7iyNB5QF5WQeQtBFadvQsYQ/wd4C1qlVPL3vU7FMhhURa7W50dMXJEHFyuH 6wFkB0m+UCL3P08LORsT8fiUsavpHVndTV1mBD16D425r8TbPefxyfsK47VufQ3SRUzh stSQbtRVkR62K8V0oL9LIWlpP1X72IfSkKRijPxYVLsnHdeAO6LhjlLEDUQ2Njn/Q+mJ b1ScQ90qzfYl0pVokPFm6ZRqh9wF4fU6oJoCqdxmBGEwV99Wi3l9i3cVAdPKMVq5rRPP NpdKfz4QQNA3NFH5BY3GG6nAWW6mGcr1CyAxgcdzoWe04ETG8ilZQa8toJPdWsJfTQUq hVEw== MIME-Version: 1.0 X-Received: by 10.220.154.66 with SMTP id n2mr6110580vcw.40.1363085319296; Tue, 12 Mar 2013 03:48:39 -0700 (PDT) Received: by 10.58.161.82 with HTTP; Tue, 12 Mar 2013 03:48:39 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Mar 2013 16:18:39 +0530 Message-ID: Subject: Re: How can I record some position of context in Reduce()? From: samir das mohapatra To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d043be0b0418fed04d7b808cf X-Virus-Checked: Checked by ClamAV on apache.org --f46d043be0b0418fed04d7b808cf Content-Type: text/plain; charset=ISO-8859-1 Through the RecordReader and FileStatus you can get it. On Tue, Mar 12, 2013 at 4:08 PM, Roth Effy wrote: > Hi,everyone, > I want to join the k-v pairs in Reduce(),but how to get the record > position? > Now,what I thought is to save the context status,but class Context doesn't > implement a clone construct method. > > Any help will be appreciated. > Thank you very much. > --f46d043be0b0418fed04d7b808cf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Through the RecordReader and FileStatus you can get it.


On Tue= , Mar 12, 2013 at 4:08 PM, Roth Effy <effyroth@gmail.com> w= rote:
Hi,everyone,
I wa= nt to join the k-v pairs in Reduce(),but how to get the record position? Now,what I thought is to save the context status,but class Context doesn= 9;t implement a clone construct method.

Any help will be appreciated.
Thank you very much.

--f46d043be0b0418fed04d7b808cf--