<?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: Ambari shows wrong state of Services on Host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144432#M40244</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt;&lt;P&gt;This most definitely looks like an agent issue. &lt;/P&gt;&lt;P&gt;Can you check if &lt;/P&gt;&lt;P&gt;1. There are stale agent processes&lt;/P&gt;&lt;P&gt;2. The agent is up and running (And not shutting down after starting for some reason)&lt;/P&gt;&lt;P&gt;To confirm both, you can use :&lt;/P&gt;&lt;PRE&gt;ps -ef | grep "ambari_agent"
&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Sep 2016 00:31:28 GMT</pubDate>
    <dc:creator>sbhat</dc:creator>
    <dc:date>2016-09-14T00:31:28Z</dc:date>
    <item>
      <title>Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144428#M40240</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;We have seen an unusual behavior on our Hortonworks cluster, where on one of the Host Ambari shows that all the services are down, but in real the services are running properly, this happened even after running the services from Ambari.&lt;/P&gt;&lt;P&gt;Following has been checked.&lt;/P&gt;&lt;P&gt;1) Verified the status of services from logs e.g. /var/hadoop/hdfs/hadoop-namenode .... (Shows running)&lt;/P&gt;&lt;P&gt;2) Checked the PID of services from /var/run/&amp;lt;servicename&amp;gt;/&amp;lt;servicename.pid&amp;gt; (The new PID was present).&lt;/P&gt;&lt;P&gt;3) Ambari agents and ambari server was stopped and started as well, but it didn't help.&lt;/P&gt;&lt;P&gt;Is there any way to fix this issue? If you need more information, please do let me know.&lt;/P&gt;&lt;P&gt;HDP Version: 2.3.4&lt;/P&gt;&lt;P&gt;Ambari Version: 2.1.1&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;P&gt;Hammad &lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 17:18:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144428#M40240</guid>
      <dc:creator>hammad_ali</dc:creator>
      <dc:date>2016-09-09T17:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144429#M40241</link>
      <description>&lt;P&gt;I've only ever seen this happen when the ambari agent process terminates on a host.      In 3) you mention stopping and starting the agent.  What's that status of the agent when ambari is showing the wrong  state?    What's does the ambari agent log file (/var/log/ambari-agent/ambari-agent.log) say ?&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ambari-agent status
Found ambari-agent PID: 2877
ambari-agent running.
Agent PID at: /var/run/ambari-agent/ambari-agent.pid
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:52:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144429#M40241</guid>
      <dc:creator>rbuckley</dc:creator>
      <dc:date>2016-09-09T18:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144430#M40242</link>
      <description>&lt;P&gt;Also,    this is a good related article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/18088/ambari-shows-hdp-services-to-be-down-whereas-they.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/18088/ambari-shows-hdp-services-to-be-down-whereas-they.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:04:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144430#M40242</guid>
      <dc:creator>rbuckley</dc:creator>
      <dc:date>2016-09-09T20:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144431#M40243</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2323/hammadali.html"&gt;Hammad Ali&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please post few lines from "ambari-server.log" and the "ambari-agent.log (from the host where the NN is running" , Where it is  either ERROR or WARN.? &lt;/P&gt;&lt;P&gt;Also starting ambari-agent.log  in DEBUG mode will help in this case.  It can be done by editing the file "&lt;STRONG&gt;/etc/ambari-agent/conf/ambari-agent.ini&lt;/STRONG&gt;"    changing loglevel  from INFO to debug as following&lt;/P&gt;&lt;PRE&gt;loglevel = DEBUG&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Sep 2016 22:47:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144431#M40243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-13T22:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144432#M40244</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2323/hammadali.html" nodeid="2323"&gt;@Hammad Ali&lt;/A&gt;&lt;P&gt;This most definitely looks like an agent issue. &lt;/P&gt;&lt;P&gt;Can you check if &lt;/P&gt;&lt;P&gt;1. There are stale agent processes&lt;/P&gt;&lt;P&gt;2. The agent is up and running (And not shutting down after starting for some reason)&lt;/P&gt;&lt;P&gt;To confirm both, you can use :&lt;/P&gt;&lt;PRE&gt;ps -ef | grep "ambari_agent"
&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Sep 2016 00:31:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144432#M40244</guid>
      <dc:creator>sbhat</dc:creator>
      <dc:date>2016-09-14T00:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari shows wrong state of Services on Host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144433#M40245</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Thanks all for your help, I managed to resolve the issue by doing the following:&lt;/P&gt;&lt;P&gt;1) I realized that in the ambari-agent logs I have this error message&lt;/P&gt;&lt;P&gt;    {'msg':'Unable to read structured output from /var/lib/ambari-agent/data/structured-out-status.json'}&lt;/P&gt;&lt;P&gt;2) For resolving this first stop ambari agent &lt;/P&gt;&lt;P&gt;3) move the move /var/lib/ambari-agent/data/structured-out-status.json to /tmp.&lt;/P&gt;&lt;P&gt;4) Restart the ambari-agent.&lt;/P&gt;&lt;P&gt;5) Everything is green again.&lt;/P&gt;&lt;P&gt;Actually I followed a post mentioned here: &lt;A href="https://community.hortonworks.com/questions/16953/unable-to-start-hdp-serrvices-from-ambari.html" target="_blank"&gt;https://community.hortonworks.com/questions/16953/unable-to-start-hdp-serrvices-from-ambari.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Don't know the exact reason behind this, but i was able to fix the issue.&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 14:23:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-shows-wrong-state-of-Services-on-Host/m-p/144433#M40245</guid>
      <dc:creator>hammad_ali</dc:creator>
      <dc:date>2016-09-14T14:23:35Z</dc:date>
    </item>
  </channel>
</rss>

