Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3375

NodeHealthScriptRunner.shouldRun() check is performing 3 times for starting NodeHealthScriptRunner

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: nodemanager
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                devaraj.k Devaraj K
                Reporter:
                devaraj.k Devaraj K
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: