ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <>
Subject [jira] [Created] (AMBARI-19435) NodeManager restart fails during HOU if it is on same host as RM
Date Tue, 10 Jan 2017 01:45:58 GMT
Jonathan Hurley created AMBARI-19435:

             Summary: NodeManager restart fails during HOU if it is on same host as RM
                 Key: AMBARI-19435
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.5.0
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: 2.5.0

# Deploy HDP- cluster with Ambari- - 4 node cluster with NodeManager installed
on all hosts, NN HA is enabled, RM HA is not enabled
# Register version and install the bits
# Start HOU using API and accept manual prompts to sys-prep the hosts. Observe the wizard
at restart task of host that runs RM and NM together

At the task to Restart Node Manager on the RM host, observed below failure:
2016-12-20 18:32:39,446 - File['/var/run/hadoop-yarn/yarn/'] {'action':
['delete'], 'not_if': '  -H -E test -f /var/run/hadoop-yarn/yarn/
&&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/'}
2016-12-20 18:32:39,459 - Execute['ulimit -c unlimited; export HADOOP_LIBEXEC_DIR=/usr/hdp/
&& /usr/hdp/current/hadoop-yarn-nodemanager/sbin/ --config /usr/hdp/
start nodemanager'] {'not_if': '  -H -E test -f /var/run/hadoop-yarn/yarn/
&&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/',
'user': 'yarn'}
2016-12-20 18:32:40,558 - Execute['  -H -E test -f /var/run/hadoop-yarn/yarn/
&&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/']
{'not_if': '  -H -E test -f /var/run/hadoop-yarn/yarn/
&&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/',
'tries': 5, 'try_sleep': 1}
2016-12-20 18:32:40,576 - Skipping Execute['  -H -E test -f /var/run/hadoop-yarn/yarn/
&&  -H -E pgrep -F /var/run/hadoop-yarn/yarn/']
due to not_if
2016-12-20 18:32:40,576 - Executing NodeManager Stack Upgrade post-restart
2016-12-20 18:32:40,578 - NodeManager executing "yarn node -list -states=RUNNING" to verify
the node has rejoined the cluster...
2016-12-20 18:32:40,578 - checked_call['yarn node -list -states=RUNNING'] {'user': 'yarn'}

Command failed after 1 tries

A retry of the failed task is successful. 

The issue looks due to the fact that RM is still down while we try to start NM on the host.
While starting NM, we run below command to verify if NM has come up
yarn node -list -states=RUNNING

The command fails since it tries to connect to RM, resulting in timeout
As a possible fix, we may need to adjust the order in HOU upgrade pack so as to start RM before
NM in such cases.

This message was sent by Atlassian JIRA

View raw message