Skip to content

Commit c15f2e2

Browse files
committed
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/trunk@1577554 13f79535-47bb-0310-9956-ffa450edef68
1 parent c0089e7 commit c15f2e2

File tree

2 files changed

+5
-2
lines changed
  • hadoop-mapreduce-project

2 files changed

+5
-2
lines changed

hadoop-mapreduce-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ Release 2.4.0 - UNRELEASED
234234
MAPREDUCE-5794. SliveMapper always uses default FileSystem. (szetszwo via
235235
Arpit Agarwal)
236236

237+
MAPREDUCE-5751. MR app master fails to start in some cases if
238+
mapreduce.job.classloader is true (Sangjin Lee via jlowe)
239+
237240
Release 2.3.1 - UNRELEASED
238241

239242
INCOMPATIBLE CHANGES

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/main/java/org/apache/hadoop/mapreduce/v2/app/MRAppMaster.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ protected void serviceStart() throws Exception {
10801080
//start all the components
10811081
super.serviceStart();
10821082

1083+
// set job classloader if configured
1084+
MRApps.setJobClassLoader(getConfig());
10831085
// All components have started, start the job.
10841086
startJobs();
10851087
}
@@ -1396,8 +1398,6 @@ public static void main(String[] args) {
13961398
// SIGTERM I have a chance to write out the job history. I'll be closing
13971399
// the objects myself.
13981400
conf.setBoolean("fs.automatic.close", false);
1399-
// set job classloader if configured
1400-
MRApps.setJobClassLoader(conf);
14011401
initAndStartAppMaster(appMaster, conf, jobUserName);
14021402
} catch (Throwable t) {
14031403
LOG.fatal("Error starting MRAppMaster", t);

0 commit comments

Comments
 (0)