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 B504F9530 for ; Wed, 5 Oct 2011 12:59:58 +0000 (UTC) Received: (qmail 77619 invoked by uid 500); 5 Oct 2011 12:59:58 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 77591 invoked by uid 500); 5 Oct 2011 12:59:58 -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 77583 invoked by uid 99); 5 Oct 2011 12:59:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 12:59:58 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Wed, 05 Oct 2011 12:59:55 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 530642AA189 for ; Wed, 5 Oct 2011 12:59:34 +0000 (UTC) Date: Wed, 5 Oct 2011 12:59:34 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1272480560.11617.1317819574341.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <788889804.39572.1306253268089.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-2531) org.apache.hadoop.mapred.jobcontrol.getAssignedJobID throw class cast exception 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-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120918#comment-13120918 ] Hudson commented on MAPREDUCE-2531: ----------------------------------- Integrated in Hadoop-Mapreduce-22-branch #80 (See [https://builds.apache.org/job/Hadoop-Mapreduce-22-branch/80/]) MAPREDUCE-2531. Fixed jobcontrol to downgrade JobID. Contributed by Robert Evans. shv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1179063 Files : * /hadoop/common/branches/branch-0.22/mapreduce/CHANGES.txt * /hadoop/common/branches/branch-0.22/mapreduce/src/java/org/apache/hadoop/mapred/jobcontrol/Job.java * /hadoop/common/branches/branch-0.22/mapreduce/src/test/mapred/org/apache/hadoop/mapred/jobcontrol/TestJobControl.java > org.apache.hadoop.mapred.jobcontrol.getAssignedJobID throw class cast exception > -------------------------------------------------------------------------------- > > Key: MAPREDUCE-2531 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2531 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: client > Affects Versions: 0.22.0 > Reporter: Robert Joseph Evans > Assignee: Robert Joseph Evans > Priority: Blocker > Fix For: 0.22.0, 0.23.0 > > Attachments: MR-2531-V1-trunk.patch, MR-2531-yarn-v1.patch > > > When using a combination of the mapred and mapreduce APIs (PIG) it is possible to have the following exception > Caused by: java.lang.ClassCastException: org.apache.hadoop.mapreduce.JobID cannot be cast to > org.apache.hadoop.mapred.JobID > at org.apache.hadoop.mapred.jobcontrol.Job.getAssignedJobID(Job.java:71) > at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:239) > at org.apache.pig.PigServer.launchPlan(PigServer.java:1325) > ... 29 more > This is because the JobID is just downcast. It should be calling JobID.downgrade -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira