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