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 E2E71D349 for ; Wed, 13 Mar 2013 01:57:12 +0000 (UTC) Received: (qmail 57406 invoked by uid 500); 13 Mar 2013 01:57:07 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 57306 invoked by uid 500); 13 Mar 2013 01:57:07 -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 57299 invoked by uid 99); 13 Mar 2013 01:57:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 01:57:07 +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 effyroth@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ea0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Mar 2013 01:57:01 +0000 Received: by mail-ea0-f173.google.com with SMTP id h14so170045eak.18 for ; Tue, 12 Mar 2013 18:56:40 -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=XniNAUfiGRD/MFOZ/rwZppD/juD8AuKULX3ZqhMwjgc=; b=xwPsNffrrfn5nxTRYk44LbFKUmNLtgUuZcMI/Qfb9jWCZHcnmPwCbhY6Ox6wJmPVhN brMrhpTt1mkYMD+dqsTwpdnhXotNCvF0f4cf5Z05YbnKaXZcMu9G3LMaZsVO2x1+/3uN cs7tZ20h4eQWGFs7fxvGGr2tuZM45IYIeZcKsQgsvl4zfJP5d6jysPVqXcK2gYIL800N 1J5tcm11q9b8tKV291XEeoGReZoI1huZieXDmq4WqDT3e1waC0HOOdtDvrSFqFD/+c+B lemxmBxsIdsrSEgmJotsHr2mx+irC7Z56qfEwtFKFYXPlA9nLDgc0bo9Afky5nwdSXDJ NFNg== MIME-Version: 1.0 X-Received: by 10.14.194.198 with SMTP id m46mr53710090een.8.1363139800805; Tue, 12 Mar 2013 18:56:40 -0700 (PDT) Received: by 10.14.38.201 with HTTP; Tue, 12 Mar 2013 18:56:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 13 Mar 2013 09:56:40 +0800 Message-ID: Subject: Re: How can I record some position of context in Reduce()? From: Roth Effy To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7b343a9e9b553304d7c4b733 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b343a9e9b553304d7c4b733 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable sorry=A3=ACI still can't understand how to use recordreader in the reduce(),because the input is a RawKeyValueIterator in the class reducecontext.so,I'm confused. anyway,thank you. 2013/3/12 samir das mohapatra > 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. >> > > --047d7b343a9e9b553304d7c4b733 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable
sorry=A3=ACI still can't understand how to use recordr= eader in the reduce(),because the input is a RawKeyValueIterator in th= e class reducecontext.so,I'm confused.
anyway,thank you.


2013/3/12 samir das mohapatra <s= amir.helpdoc@gmail.com>
Through the RecordReader and FileStatus you can get it.
<= br>
On Tue, Mar 12, 2013 at 4:08 PM, Roth Eff= y <effyroth@gmail.com> wrote:
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.


--047d7b343a9e9b553304d7c4b733--