Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 37876 invoked from network); 25 Jun 2010 08:27:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 08:27:13 -0000 Received: (qmail 24645 invoked by uid 500); 25 Jun 2010 08:27:13 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 24544 invoked by uid 500); 25 Jun 2010 08:27:11 -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 24536 invoked by uid 99); 25 Jun 2010 08:27:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 08:27:10 +0000 X-ASF-Spam-Status: No, hits=-1544.3 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 08:27:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5P8QocW025058 for ; Fri, 25 Jun 2010 08:26:50 GMT Message-ID: <9343821.54951277454410008.JavaMail.jira@thor> Date: Fri, 25 Jun 2010 04:26:50 -0400 (EDT) From: "Ravi Gummadi (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Updated: (MAPREDUCE-1888) Streaming overrides user given output key and value types. In-Reply-To: <7081969.8711277267631062.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ravi Gummadi updated MAPREDUCE-1888: ------------------------------------ Attachment: 1888.patch Attaching patch fixing the issue. Added testcase that validates the user set config properties mapreduce.map.output.key.class and mapreduce.output.key.class are honored in streaming jobs with java classes as mapper and reducer. > Streaming overrides user given output key and value types. > ---------------------------------------------------------- > > Key: MAPREDUCE-1888 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1888 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: contrib/streaming > Affects Versions: 0.21.0 > Reporter: Amareshwari Sriramadasu > Assignee: Ravi Gummadi > Fix For: 0.22.0 > > Attachments: 1888.patch > > > The following code in StreamJob.java overrides user given output key and value types. > {code} > idResolver.resolve(conf.get(StreamJobConfig.MAP_OUTPUT, > IdentifierResolver.TEXT_ID)); > conf.setClass(StreamJobConfig.MAP_OUTPUT_READER_CLASS, > idResolver.getOutputReaderClass(), OutputReader.class); > job.setMapOutputKeyClass(idResolver.getOutputKeyClass()); > job.setMapOutputValueClass(idResolver.getOutputValueClass()); > > idResolver.resolve(conf.get(StreamJobConfig.REDUCE_OUTPUT, > IdentifierResolver.TEXT_ID)); > conf.setClass(StreamJobConfig.REDUCE_OUTPUT_READER_CLASS, > idResolver.getOutputReaderClass(), OutputReader.class); > job.setOutputKeyClass(idResolver.getOutputKeyClass()); > job.setOutputValueClass(idResolver.getOutputValueClass()); > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.