YARN-7396. NPE when accessing container logs due to null dirsHandler. Contributed by Jonathan Hung
This commit is contained in:
parent
7a49ddfdde
commit
0cc98ae0ec
|
@ -367,6 +367,8 @@ public class NodeManager extends CompositeService
|
|||
|
||||
this.aclsManager = new ApplicationACLsManager(conf);
|
||||
|
||||
this.dirsHandler = new LocalDirsHandlerService(metrics);
|
||||
|
||||
boolean isDistSchedulingEnabled =
|
||||
conf.getBoolean(YarnConfiguration.DIST_SCHEDULING_ENABLED,
|
||||
YarnConfiguration.DEFAULT_DIST_SCHEDULING_ENABLED);
|
||||
|
@ -390,7 +392,6 @@ public class NodeManager extends CompositeService
|
|||
// NodeManager level dispatcher
|
||||
this.dispatcher = new AsyncDispatcher("NM Event dispatcher");
|
||||
|
||||
dirsHandler = new LocalDirsHandlerService(metrics);
|
||||
nodeHealthChecker =
|
||||
new NodeHealthCheckerService(
|
||||
getNodeHealthScriptRunner(conf), dirsHandler);
|
||||
|
|
Loading…
Reference in New Issue