Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 79F08635E for ; Sun, 26 Jun 2011 21:04:11 +0000 (UTC) Received: (qmail 9298 invoked by uid 500); 26 Jun 2011 21:04:11 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 9064 invoked by uid 500); 26 Jun 2011 21:04:10 -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 9050 invoked by uid 99); 26 Jun 2011 21:04:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 21:04:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 21:04:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 788194329CE for ; Sun, 26 Jun 2011 21:03:47 +0000 (UTC) Date: Sun, 26 Jun 2011 21:03:47 +0000 (UTC) From: "Harsh J (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1377888818.41987.1309122227490.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <944557955.2112.1308042167442.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (MAPREDUCE-2590) How to access Job Configuration file in Partitioner 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-2590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harsh J resolved MAPREDUCE-2590. -------------------------------- Resolution: Invalid Somnath, Thank you for taking time to file an issue! MAPREDUCE-2474 added a API doc that specifies how to make your Partitioners configurable (API doc is clear on how to do so as well). You don't need to apply the patch, since its a docfix improvement. However, you can find a detailed, example-ized solution here: http://cornercases.wordpress.com/2011/05/06/an-example-configurable-partitioner/ Resolving as Invalid (covered by MAPREDUCE-2474). > How to access Job Configuration file in Partitioner > --------------------------------------------------- > > Key: MAPREDUCE-2590 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2590 > Project: Hadoop Map/Reduce > Issue Type: Task > Reporter: Somnath > Priority: Minor > Labels: configuration, hadoop, job, partitioners > > I need to access Job Configuration file in partitioner to fetch some information. Generally we can access job configuration file easily in map or reduce side by this code > Configuration config = context.getConfiguration(); > But this same code cannot be used in partitioner. To solve this issue I followed the patch https://issues.apache.org/jira/browse/MAPREDUCE-2474 but it is a doc so I downloaded the latest trunk code and generate the jar but I did not get any extra feature from that to call the job configuration file So any one knows the code to call Job Configuration file in partitioner. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira