<?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 agent not running in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268350#M206117</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please try this:&lt;/P&gt;&lt;P&gt;Try changing the "ping_port" of ambari agent in the following file: (default port is 8670 may be try changing it to 8671 or something unused)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# grep '8670' /etc/ambari-agent/conf/ambari-agent.ini
ping_port=8670&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;After changing the port please try this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# netstat -tnlpa | grep 8670
# kill -9 $PID_from_above_command 
# rm -f /var/run/ambari-agent/ambari-agent.pid
# ambari-agent start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 08:57:18 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2019-08-20T08:57:18Z</dc:date>
    <item>
      <title>ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268325#M206092</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By mistake i deleted one file in ambari agent that is&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;rm -f /run/ambari-agent/ambari-agent.pid&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after that its showing this error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ambari-agent restart&lt;BR /&gt;Restarting ambari-agent&lt;BR /&gt;Verifying Python version compatibility...&lt;BR /&gt;Using python /usr/bin/python&lt;BR /&gt;ambari-agent is not running. No PID found at /run/ambari-agent/ambari-agent.pid&lt;BR /&gt;Verifying Python version compatibility...&lt;BR /&gt;Using python /usr/bin/python&lt;BR /&gt;Checking for previously running Ambari Agent...&lt;BR /&gt;Checking ambari-common dir...&lt;BR /&gt;Starting ambari-agent&lt;BR /&gt;Verifying ambari-agent process status...&lt;BR /&gt;ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:&lt;BR /&gt;====================&lt;BR /&gt;No handlers could be found for logger "root"&lt;BR /&gt;Failed to start ping port listener of: Could not open port 8670 because port already used by another process:&lt;BR /&gt;UID PID PPID C STIME TTY TIME CMD&lt;BR /&gt;root 23758 23754 0 Aug19 pts/4 00:00:17 /usr/bin/python /usr/lib/ambari-&lt;BR /&gt;====================&lt;BR /&gt;Agent out at: /var/log/ambari-agent/ambari-agent.out&lt;BR /&gt;Agent log at: /var/log/ambari-agent/ambari-agent.log&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:15:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268325#M206092</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-08-20T10:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268330#M206097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to find the ambari agent pid and kill is manually.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Below cmds will usefull&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#339966"&gt;# ps aux | grep main.py | grep -v grep&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="book antiqua,palatino" color="#339966"&gt;# kill PID&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once the process is killed then you can start the agent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please accept the answer once issue resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 07:25:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268330#M206097</guid>
      <dc:creator>pbhagade</dc:creator>
      <dc:date>2019-08-20T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268341#M206108</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i tried this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ps aux | grep main.py | grep -v grep&lt;/STRONG&gt;&lt;BR /&gt;root 12998 0.0 0.1 164276 28588 pts/4 T Aug19 0:00 /usr/bin/python /usr/lib/ambari-agent/lib/ambari_agent/main.py stop&lt;BR /&gt;root 23758 0.0 0.1 232796 23640 pts/4 Sl Aug19 0:32 /usr/bin/python /usr/lib/ambari-agent/lib/ambari_agent/main.py start&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;kill PID&lt;/STRONG&gt;&lt;BR /&gt;bash: kill: PID: arguments must be process or job IDs&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:41:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268341#M206108</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-08-20T08:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268342#M206109</link>
      <description>&lt;P&gt;Use below cmds, PID means pid of the process.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;kill12998&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kill&amp;nbsp;23758&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Restart ambari agent&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:44:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268342#M206109</guid>
      <dc:creator>pbhagade</dc:creator>
      <dc:date>2019-08-20T08:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268344#M206111</link>
      <description>&lt;P&gt;Still same error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ambari-agent restart&lt;BR /&gt;Restarting ambari-agent&lt;BR /&gt;Verifying Python version compatibility...&lt;BR /&gt;Using python /usr/bin/python&lt;BR /&gt;&lt;STRONG&gt;ambari-agent is not running. No PID found at /run/ambari-agent/ambari-agent.pid&lt;/STRONG&gt;&lt;BR /&gt;Verifying Python version compatibility...&lt;BR /&gt;Using python /usr/bin/python&lt;BR /&gt;Checking for previously running Ambari Agent...&lt;BR /&gt;Checking ambari-common dir...&lt;BR /&gt;Starting ambari-agent&lt;BR /&gt;Verifying ambari-agent process status...&lt;BR /&gt;ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:&lt;BR /&gt;====================&lt;BR /&gt;No handlers could be found for logger "root"&lt;BR /&gt;Failed to start ping port listener of: Could not open port 8670 because port already used by another process:&lt;BR /&gt;UID PID PPID C STIME TTY TIME CMD&lt;BR /&gt;root 23758 23754 0 Aug19 pts/4 00:00:43 /usr/bin/python /usr/lib/ambari-&lt;BR /&gt;====================&lt;BR /&gt;Agent out at: /var/log/ambari-agent/ambari-agent.out&lt;BR /&gt;Agent log at: /var/log/ambari-agent/ambari-agent.log&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:48:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268344#M206111</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-08-20T08:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268346#M206113</link>
      <description>&lt;P&gt;kill the process which is using&lt;STRONG&gt; port&amp;nbsp;8670&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;netstat -tulpn | grep 8670&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;kill -9 &amp;lt;process pid&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:50:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268346#M206113</guid>
      <dc:creator>pbhagade</dc:creator>
      <dc:date>2019-08-20T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268348#M206115</link>
      <description>&lt;P&gt;still same error. can you tell me your contact in private messages(email or phone)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:54:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268348#M206115</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-08-20T08:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: ambari agent not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268350#M206117</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/68583"&gt;@Manoj690&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please try this:&lt;/P&gt;&lt;P&gt;Try changing the "ping_port" of ambari agent in the following file: (default port is 8670 may be try changing it to 8671 or something unused)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# grep '8670' /etc/ambari-agent/conf/ambari-agent.ini
ping_port=8670&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;After changing the port please try this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# netstat -tnlpa | grep 8670
# kill -9 $PID_from_above_command 
# rm -f /var/run/ambari-agent/ambari-agent.pid
# ambari-agent start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:57:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268350#M206117</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-08-20T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: ambari server not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268351#M206118</link>
      <description>&lt;P&gt;&lt;STRONG&gt;can you tell me solution for this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ambari-server restart&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using python /usr/bin/python&lt;BR /&gt;Restarting ambari-server&lt;BR /&gt;Ambari Server is not running&lt;BR /&gt;Ambari Server running with administrator privileges.&lt;BR /&gt;Organizing resource files at /var/lib/ambari-server/resources...&lt;BR /&gt;Ambari database consistency check started...&lt;BR /&gt;Server PID at: /var/run/ambari-server/ambari-server.pid&lt;BR /&gt;Server out at: /var/log/ambari-server/ambari-server.out&lt;BR /&gt;Server log at: /var/log/ambari-server/ambari-server.log&lt;BR /&gt;Waiting for server start..........................................ERROR: Exiting with exit code -1.&lt;BR /&gt;REASON: Ambari Server java process has stopped. Please check the logs for more information.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 09:06:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268351#M206118</guid>
      <dc:creator>Manoj690</dc:creator>
      <dc:date>2019-08-20T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: ambari server not running</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268361#M206127</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We don't share personal information like contacts, As you are facing Ambari Server issue and Agents issue is resolved, Please open a new question for Ambari Server, Also, check the Ambari Server logs you see some exceptions, attach those exceptions.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:25:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-agent-not-running/m-p/268361#M206127</guid>
      <dc:creator>pbhagade</dc:creator>
      <dc:date>2019-08-20T10:25:12Z</dc:date>
    </item>
  </channel>
</rss>

