Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 8345 invoked from network); 9 Nov 2009 08:58:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 08:58:57 -0000 Received: (qmail 4601 invoked by uid 500); 9 Nov 2009 08:58:57 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 4531 invoked by uid 500); 9 Nov 2009 08:58:57 -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 4521 invoked by uid 99); 9 Nov 2009 08:58:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 08:58:57 +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; Mon, 09 Nov 2009 08:58:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 784BA234C045 for ; Mon, 9 Nov 2009 00:58:33 -0800 (PST) Message-ID: <2006096136.1257757113461.JavaMail.jira@brutus> Date: Mon, 9 Nov 2009 08:58:33 +0000 (UTC) From: "Hudson (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1178) MultipleInputs fails with ClassCastException In-Reply-To: <370428752.1257203339398.JavaMail.jira@brutus> 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-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774902#action_12774902 ] Hudson commented on MAPREDUCE-1178: ----------------------------------- Integrated in Hadoop-Mapreduce-trunk-Commit #114 (See [http://hudson.zones.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/114/]) . Fix ClassCastException in MultipleInputs by adding a DelegatingRecordReader. Contributed by Amareshwari Sriramadasu and Jay Booth. > MultipleInputs fails with ClassCastException > --------------------------------------------- > > Key: MAPREDUCE-1178 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1178 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 0.21.0 > Reporter: Jay Booth > Assignee: Amareshwari Sriramadasu > Priority: Blocker > Fix For: 0.21.0 > > Attachments: MAPREDUCE-1178.patch, patch-1178-1.txt, patch-1178.txt > > > When running MultipleInputs against the new API, we get failures with this ClassCastException: > java.lang.ClassCastException: org.apache.hadoop.mapreduce.lib.input.TaggedInputSplit cannot be cast to org.apache.hadoop.mapreduce.lib.input.FileSplit > at org.apache.hadoop.mapreduce.lib.input.LineRecordReader.initialize(LineRecordReader.java:70) > at org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader.initialize(KeyValueLineRecordReader.java:59) > at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.initialize(MapTask.java:439) > at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:599) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323) > at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:257) > The unit test for MultipleInputs doesn't actually run a job so this snuck through while still passing the unit test. Attached patch fixes the unit test to expose the failure and does a little casting kung-fu in LineRecordReader to avoid the error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.