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 "Hadoop QA (JIRA)" <ji...@apache.org> on 2011/05/24 21:26:47 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=13038743#comment-13038743 ] 

Hadoop QA commented on MAPREDUCE-2531:
--------------------------------------

+1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12480276/MR-2531-V1-trunk.patch
  against trunk revision 1126801.

    +1 @author.  The patch does not contain any @author tags.

    +1 tests included.  The patch appears to include 3 new or modified tests.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 1.3.9) warnings.

    +1 release audit.  The applied patch does not increase the total number of release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

    +1 system test framework.  The patch passed system test framework compile.

Test results: https://builds.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/302//testReport/
Findbugs warnings: https://builds.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/302//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/hudson/job/PreCommit-MAPREDUCE-Build/302//console

This message is automatically generated.

> 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
>         Attachments: MR-2531-V1-trunk.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