<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Unable to start nodemanager in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203094#M71898</link>
    <description>&lt;P&gt;i tried to manually starting nodemanager  login as root :&lt;/P&gt;&lt;P&gt; cd /usr/hdp/current/hadoop-yarn-nodemanager/sbi                                                                                        n/&lt;/P&gt;&lt;P&gt;sh yarn-daemon.sh  start nodemanger&lt;/P&gt;&lt;P&gt;and nodemanager started but when doing same with ambari it is not able to start.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 15:37:34 GMT</pubDate>
    <dc:creator>amol_08</dc:creator>
    <dc:date>2017-11-28T15:37:34Z</dc:date>
    <item>
      <title>Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203093#M71897</link>
      <description>&lt;P&gt;I am tryting to start nodemanager but it is getting stopped , I have tried to see its log  (/var/log/hadoop-yarn/yarn ) in the same machine in which nodemanger  is installed but there are no logs available. In ambari I tried to see stderr:  /var/lib/ambari-agent/data/errors-2756.txt&lt;/P&gt;&lt;P&gt;and getting some error like : &lt;/P&gt;&lt;PRE&gt;File "/usr/lib/python2.6/site-packages/resource_management/core/providers/mount.py", line 41, in get_mounted
    raise Fail("Getting list of mounts (calling mount) failed")
resource_management.core.exceptions.Fail: Getting list of mounts (calling mount) failed&lt;/PRE&gt;&lt;P&gt;i even checked yarn.nodemanager.log-dirs :&lt;/P&gt;&lt;P&gt;/usr/hadoop/yarn/log,/var/run/hadoop/yarn/log,/opt/hadoop/yarn/log,                                                                                        /var/log/hadoop/yarn/log,/data/hadoop/yarn/log&lt;/P&gt;&lt;P&gt;but getting No such file or directory in the same machine in which nodemanager is installed .&lt;/P&gt;&lt;P&gt;out of four nodemanager only one node manager is running and its logs are available in /var/log/hadoop-yarn/yarn but for other there are no logs.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:28:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203093#M71897</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-28T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203094#M71898</link>
      <description>&lt;P&gt;i tried to manually starting nodemanager  login as root :&lt;/P&gt;&lt;P&gt; cd /usr/hdp/current/hadoop-yarn-nodemanager/sbi                                                                                        n/&lt;/P&gt;&lt;P&gt;sh yarn-daemon.sh  start nodemanger&lt;/P&gt;&lt;P&gt;and nodemanager started but when doing same with ambari it is not able to start.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203094#M71898</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-28T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203095#M71899</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/19322/mishraanurag643.html"&gt;Anurag Mishra&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What is the error you get when you try restarting Ambari? check out in &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;/var/log/ambari-server/ambari-server.log&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please attach the log&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:16:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203095#M71899</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-11-28T16:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203096#M71900</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; can you please look into issue ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 18:47:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203096#M71900</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-28T18:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203097#M71901</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Based on Error it looks like ambari agent is not able to determine the Mount directories on the failing host. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.6.0/ambari-common/src/main/python/resource_management/core/providers/mount.py#L34-L41" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.0/ambari-common/src/main/python/resource_management/core/providers/mount.py#L34-L41&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;For a quick test please write following kind of simple python script &lt;STRONG&gt;"/tmp/mountTest.py" &lt;/STRONG&gt;to list the mount directories (this is exactly same what the ambari-agent does).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; please make sure that indentation is same as below inside the file as Python is very sensitive to indentations.&lt;/P&gt;&lt;PRE&gt;import os
import re
from subprocess import Popen, PIPE, STDOUT

p = Popen("mount", stdout=PIPE, stderr=STDOUT, shell=True)
out = p.communicate()[0]
if p.wait() != 0:
    raise Fail("Getting list of mounts (calling mount) failed")
print 'All Good' + out&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The run the script as following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: &lt;/STRONG&gt;Please make sure that the python is running with the same user account who is running the ambari-agent,.&lt;/P&gt;&lt;PRE&gt;# python /tmp/mountTest.py

All Good/dev/vda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 18:59:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203097#M71901</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-28T18:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203098#M71902</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;  &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt; i ran same mount test script :&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;here is below result &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Traceback (most recent call last):
  File "/tmp/MountTest.py", line 8, in &amp;lt;module&amp;gt;
    raise Fail("Getting list of mounts (calling mount) failed")
NameError: name 'Fail' is not defined&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 19:27:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203098#M71902</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-28T19:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203099#M71903</link>
      <description>&lt;P&gt;i have restarted ambari-agent but when i start nodemanager now getting an error :&lt;/P&gt;&lt;PRE&gt;Execution of 'ambari-sudo.sh su yarn -l -s /bin/bash -c 'ls /var/run/hadoop-yarn/yarn/yarn-yarn-nodemanager.pid &amp;amp;&amp;amp; ps -p `cat /var/run/hadoop-yarn/yarn/yarn-yarn-nodemanager.pid`'' returned 1. /var/run/hadoop-yarn/yarn/yarn-yarn-nodemanager.pid&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2017 21:25:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203099#M71903</guid>
      <dc:creator>amol_08</dc:creator>
      <dc:date>2017-11-28T21:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to start nodemanager</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203100#M71904</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/19322/mishraanurag643.html" nodeid="19322"&gt;@Anurag Mishra&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Can you make a small change to &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;'s script as below and run the script and paste the output&lt;/P&gt;&lt;PRE&gt;from subprocess import Popen, PIPE, STDOUT
p = Popen("mount", stdout=PIPE, stderr=STDOUT, shell=True)
out,err = p.communicate()
print "return code is :: " + str(p.returncode)
if out:
    print "stdout is :: " + out
if err:
    print "stderr is :: " + err&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Nov 2017 21:33:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-start-nodemanager/m-p/203100#M71904</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-11-28T21:33:36Z</dc:date>
    </item>
  </channel>
</rss>

