Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
1. NodeHealthScriptRunner.shouldRun() check is happening 3 times for starting the NodeHealthScriptRunner.
NodeManager.java
if(!NodeHealthScriptRunner.shouldRun(nodeHealthScript)) { LOG.info("Abey khali"); return null; }
NodeHealthCheckerService.java
if (NodeHealthScriptRunner.shouldRun(
conf.get(YarnConfiguration.NM_HEALTH_CHECK_SCRIPT_PATH))) {
addService(nodeHealthScriptRunner);
}
NodeHealthScriptRunner.java
if (!shouldRun(nodeHealthScript)) { LOG.info("Not starting node health monitor"); return; }
2. If we don't configure node health script or configured health script doesn't execute permission, NM logs with the below message.
2015-03-19 19:55:45,713 INFO org.apache.hadoop.yarn.server.nodemanager.NodeManager: Abey khali