You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/06/03 13:48:48 UTC

[jira] [Commented] (MAPREDUCE-2531) org.apache.hadoop.mapred.jobcontrol.getAssignedJobID throw class cast exception

    [ https://issues.apache.org/jira/browse/MAPREDUCE-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13043314#comment-13043314 ] 

Hudson commented on MAPREDUCE-2531:
-----------------------------------

Integrated in Hadoop-Mapreduce-trunk-Commit #711 (See [https://builds.apache.org/hudson/job/Hadoop-Mapreduce-trunk-Commit/711/])
    MAPREDUCE-2531. Fixed jobcontrol to downgrade JobID. Contributed by Robert Evans.

acmurthy : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1130992
Files : 
* /hadoop/mapreduce/trunk/CHANGES.txt
* /hadoop/mapreduce/trunk/src/test/mapred/org/apache/hadoop/mapred/jobcontrol/TestJobControl.java
* /hadoop/mapreduce/trunk/src/java/org/apache/hadoop/mapred/jobcontrol/Job.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
>             Fix For: 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira