Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2531

org.apache.hadoop.mapred.jobcontrol.getAssignedJobID throw class cast exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0, 0.23.0
    • Component/s: client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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

      1. MR-2531-yarn-v1.patch
        2 kB
        Robert Joseph Evans
      2. MR-2531-V1-trunk.patch
        2 kB
        Robert Joseph Evans

        Activity

        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Konstantin Shvachko made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Konstantin Shvachko made changes -
        Fix Version/s 0.22.0 [ 12314184 ]
        Priority Major [ 3 ] Blocker [ 1 ]
        Konstantin Shvachko made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Arun C Murthy made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robert Joseph Evans made changes -
        Attachment MR-2531-yarn-v1.patch [ 12480569 ]
        Mahadev konar made changes -
        Fix Version/s 0.23.0 [ 12315570 ]
        Robert Joseph Evans made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Robert Joseph Evans made changes -
        Field Original Value New Value
        Attachment MR-2531-V1-trunk.patch [ 12480276 ]
        Robert Joseph Evans created issue -

          People

          • Assignee:
            Robert Joseph Evans
            Reporter:
            Robert Joseph Evans
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development