<?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: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out: in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189940#M78185</link>
    <description>&lt;P&gt;I'm running it as root user. &lt;/P&gt;&lt;P&gt;[root@datanode4 ~]# ls -ld /var/run/ambari-agent&lt;/P&gt;&lt;P&gt;
drwxr-xr-x 2 root root 4096 May 11 15:45 /var/run/ambari-agent &lt;/P&gt;&lt;P&gt;[root@datanode4 ~]# ls -l /var/run/ambari-agent/ambari-agent.pid &lt;/P&gt;&lt;P&gt;-rw-r--r-- 1 root root 5 May 11 15:45 /var/run/ambari-agent/ambari-agent.pid &lt;/P&gt;&lt;P&gt; [root@datanode4 ~]#  cat /var/log/ambari-agent/ambari-agent.out&lt;/P&gt;&lt;P&gt;
Failed to start ping port listener of: Could not open port 8670 because port already used by another process:
UID        PID  PPID  C STIME TTY          TIME CMD
root     19874 10487 57 15:31 ?        00:00:16 /usr/bin/python /usr/lib/python2&lt;/P&gt;</description>
    <pubDate>Fri, 11 May 2018 14:51:33 GMT</pubDate>
    <dc:creator>dcedielunesa</dc:creator>
    <dc:date>2018-05-11T14:51:33Z</dc:date>
    <item>
      <title>Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189938#M78183</link>
      <description>&lt;P&gt;/var/log/ambari-agent/ambari-agent.out:&lt;/P&gt;&lt;P&gt;/var/run/ambari-agent/ambari-agent.pid already exists, exiting&lt;/P&gt;&lt;P&gt;it only appears on 1 datanode&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 14:07:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189938#M78183</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-05-11T14:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189939#M78184</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;@Christian  Lunesa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Are you running ambari agent as a non root user?&lt;/P&gt;&lt;P&gt;- Can you try removing the file "/var/run/ambari-agent/ambari-agent.pid" and then try starting the agent again?  Please check the permission on the PID file.&lt;/P&gt;&lt;PRE&gt;# ls -l /var/run/ambari-agent/ambari-agent.pid
# ls -ld /var/run/ambari-agent

# rm -f /var/run/ambari-agent/ambari-agent.pid&lt;/PRE&gt;&lt;P&gt;- Can you please share following files:&lt;/P&gt;&lt;PRE&gt;/var/log/ambari-agent/ambari-agent.out
/var/log/ambari-agent/ambari-agent.log&lt;/PRE&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 11 May 2018 14:37:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189939#M78184</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-11T14:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189940#M78185</link>
      <description>&lt;P&gt;I'm running it as root user. &lt;/P&gt;&lt;P&gt;[root@datanode4 ~]# ls -ld /var/run/ambari-agent&lt;/P&gt;&lt;P&gt;
drwxr-xr-x 2 root root 4096 May 11 15:45 /var/run/ambari-agent &lt;/P&gt;&lt;P&gt;[root@datanode4 ~]# ls -l /var/run/ambari-agent/ambari-agent.pid &lt;/P&gt;&lt;P&gt;-rw-r--r-- 1 root root 5 May 11 15:45 /var/run/ambari-agent/ambari-agent.pid &lt;/P&gt;&lt;P&gt; [root@datanode4 ~]#  cat /var/log/ambari-agent/ambari-agent.out&lt;/P&gt;&lt;P&gt;
Failed to start ping port listener of: Could not open port 8670 because port already used by another process:
UID        PID  PPID  C STIME TTY          TIME CMD
root     19874 10487 57 15:31 ?        00:00:16 /usr/bin/python /usr/lib/python2&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 14:51:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189940#M78185</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-05-11T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189941#M78186</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;@Christian  Lunesa&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like some other process is using port 8670 which is used by Agents hence agent is not able toi startup.&lt;/P&gt;&lt;P&gt;Please find which process is using the port 8670 and then kill it then try the start Agent again.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ambari Agent uses this port 8670 as Ping Port So that port should be free before we attempt to start the agent.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;# netstat -tnlpa | grep 8670&amp;lt;br&amp;gt;
# kill -9  $PID_from_above_command 
# ambari-agent start&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;OR you will need to change the "ping_port" of ambari agent in the following file:&lt;/P&gt;&lt;PRE&gt;# grep '8670' /etc/ambari-agent/conf/ambari-agent.ini
ping_port=8670
&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/66186/dcedielunesa.html" nodeid="66186"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 15:41:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189941#M78186</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-05-11T15:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189942#M78187</link>
      <description>&lt;P&gt;can I just use any port for ping port as long as it is not used by any application?&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 20:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189942#M78187</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-05-11T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189943#M78188</link>
      <description>&lt;P&gt;I tried to change the port but the error still appears.  I change the port to 8671. .&lt;/P&gt;&lt;P&gt;Failed to start ping port listener of: Could not open port 8671 because port already used by another process:&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 21:03:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189943#M78188</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-05-11T21:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I get this ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189944#M78189</link>
      <description>&lt;P&gt;Netstat show only 1 PID running from 8671&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 21:19:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Why-do-I-get-this-ERROR-ambari-agent-start-failed-For-more/m-p/189944#M78189</guid>
      <dc:creator>dcedielunesa</dc:creator>
      <dc:date>2018-05-11T21:19:12Z</dc:date>
    </item>
  </channel>
</rss>

