[ 
https://issues.apache.org/jira/browse/HADOOP-6602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer resolved HADOOP-6602.
--------------------------------------

    Resolution: Fixed

> ClassLoader (Configuration#setClassLoader) in new Job API (0.20) does not work
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-6602
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6602
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 0.20.1
>         Environment: Cloudera Hadoop 0.20.1+152
>            Reporter: William Kinney
>
> 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();}}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to