MAPREDUCE-5751. MR app master fails to start in some cases if mapreduce.job.classloader is true. Contributed by Sangjin Lee
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1577555 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
72cf96300b
commit
838b4d3f84
|
@ -92,6 +92,9 @@ Release 2.4.0 - UNRELEASED
|
|||
MAPREDUCE-5794. SliveMapper always uses default FileSystem. (szetszwo via
|
||||
Arpit Agarwal)
|
||||
|
||||
MAPREDUCE-5751. MR app master fails to start in some cases if
|
||||
mapreduce.job.classloader is true (Sangjin Lee via jlowe)
|
||||
|
||||
Release 2.3.1 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -1066,6 +1066,8 @@ public class MRAppMaster extends CompositeService {
|
|||
//start all the components
|
||||
super.serviceStart();
|
||||
|
||||
// set job classloader if configured
|
||||
MRApps.setJobClassLoader(getConfig());
|
||||
// All components have started, start the job.
|
||||
startJobs();
|
||||
}
|
||||
|
@ -1376,8 +1378,6 @@ public class MRAppMaster extends CompositeService {
|
|||
// SIGTERM I have a chance to write out the job history. I'll be closing
|
||||
// the objects myself.
|
||||
conf.setBoolean("fs.automatic.close", false);
|
||||
// set job classloader if configured
|
||||
MRApps.setJobClassLoader(conf);
|
||||
initAndStartAppMaster(appMaster, conf, jobUserName);
|
||||
} catch (Throwable t) {
|
||||
LOG.fatal("Error starting MRAppMaster", t);
|
||||
|
|
Loading…
Reference in New Issue