Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 13369 invoked from network); 8 Sep 2009 11:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 11:45:23 -0000 Received: (qmail 80062 invoked by uid 500); 8 Sep 2009 11:45:22 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 80031 invoked by uid 500); 8 Sep 2009 11:45:22 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 80021 invoked by uid 99); 8 Sep 2009 11:45:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 11:45:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 11:45:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 80BFE234C4B0 for ; Tue, 8 Sep 2009 04:44:58 -0700 (PDT) Message-ID: <1139876140.1252410298526.JavaMail.jira@brutus> Date: Tue, 8 Sep 2009 04:44:58 -0700 (PDT) From: "Jothi Padmanabhan (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-372) Change org.apache.hadoop.mapred.lib.ChainMapper/Reducer to use new api. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752452#action_12752452 ] Jothi Padmanabhan commented on MAPREDUCE-372: --------------------------------------------- Just to make it easier, here is the pseudo copy constructor that we needed to add {code} /** * A pseudo copy constructor. Set the record writer and configuration values * to the passed arguments and the rest of the fields from the other * context object. Used by Chain Reducer * @param context * @param output * @param conf * @throws InterruptedException * @throws IOException */ public ReduceContext(ReduceContext context, RecordWriter output, Configuration conf) throws InterruptedException, IOException{ super(conf, context.taskid, output, context.getOutputCommitter(), context.getReporter()); this.input = context.input; this.inputCounter = context.inputCounter; this.comparator = context.comparator; this.serializationFactory = context.serializationFactory; this.keyDeserializer = context.keyDeserializer; this.valueDeserializer = context.valueDeserializer; this.keyClass = context.keyClass; this.valueClass = context.valueClass; this.conf = conf; this.taskid = context.taskid; this.hasMore = context.hasMore; this.buffer = context.buffer; } {code} > Change org.apache.hadoop.mapred.lib.ChainMapper/Reducer to use new api. > ----------------------------------------------------------------------- > > Key: MAPREDUCE-372 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-372 > Project: Hadoop Map/Reduce > Issue Type: Sub-task > Reporter: Amareshwari Sriramadasu > Assignee: Amareshwari Sriramadasu > Fix For: 0.21.0 > > Attachments: mapred-372.patch, patch-372-1.txt, patch-372.txt > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.