Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.20.1
-
None
-
None
-
Cloudera Hadoop 0.20.1+152
Description
new Job/Configuration API's setClassLoader (Configuration#setClassLoader) gets overwritten w/ Thread.currentThread().getContextClassLoader() when invoking Job#submit.
Upon class to Job#submit, JobClient#submitJobInternal invokes JobContext context = new JobContext(job, jobId);, which in the constructor for org.apache.hadoop.mapreduce.JobContext, wraps Job w/ new JobConf and therefore overwrites set classLoader member @ Configuration via a init block w/ classLoader = Thread.currentThread().getContextClassLoader();