Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 11966 invoked from network); 5 Jul 2010 05:11:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 05:11:48 -0000 Received: (qmail 83309 invoked by uid 500); 5 Jul 2010 05:11:48 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 83215 invoked by uid 500); 5 Jul 2010 05:11:45 -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 83207 invoked by uid 99); 5 Jul 2010 05:11:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 05:11:44 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 05:11:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6553ofl003698 for ; Mon, 5 Jul 2010 05:03:50 GMT Message-ID: <14804745.196611278306230707.JavaMail.jira@thor> Date: Mon, 5 Jul 2010 01:03:50 -0400 (EDT) From: "Amareshwari Sriramadasu (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-1888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12885104#action_12885104 ] Amareshwari Sriramadasu commented on MAPREDUCE-1888: ---------------------------------------------------- Patch looks good. A couple of mumak tests failed with NoClassDefFoundError, they passed on my local machine. TestSimulatorDeterministicReplay failed because of MAPREDUCE-1834. Will check this in. > 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, 1888.v1.patch, 1888.v2.patch, 1888.v3.patch, 1888.v4.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.