<?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 heart beat lost in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186798#M61758</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. stop ambari-server

2. take a back of existing /var/lib/ambari-server/keys folder and empty it.

3. download the attached keys.zip file and copy it to /var/lib/ambari-server/ , your new folder structure should be like /var/lib/ambari-server/keys/ca.config,/var/lib/ambari-server/keys/db/,  - basically this is a fresh keys folder ( this is what you get when you install ambari-server )

4. Take a back up of all the Agent certs located at /var/lib/ambari-agent/keys/ in all the hosts.

5. Delete all the files under /var/lib/ambari-agent/keys/ folder

6. restart ambari-server. Note: ambari-server should create new certs under /var/lib/ambari-server/keys/ca.crt , /var/lib/ambari-server/keys/ca.key ....

7. restart ambari-agent, Note: ambari-agent should create new certs under /var/lib/ambari-server/keys/ folder

now you should see the successful heart beat from all the Agents.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 20:40:45 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-05-25T20:40:45Z</dc:date>
    <item>
      <title>AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186791#M61751</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Not sure what happened but Ambari serveer is showing heart beat lost for all the hosts. I tried restarting the ambari server and agent but no help. &lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 25 May 2017 18:14:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186791#M61751</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-05-25T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186792#M61752</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From the ambari agent host try to access the ambari server's following port to findout if  the Ambari's Heartbeat port is accessible to the agent or not? &lt;/P&gt;&lt;PRE&gt;telnet  $AMBARI_HOSTNAME   8441&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The "/etc/ambari-agent/conf/ambari-agent.ini" file should have the mentioned host &amp;amp; port information of server.&lt;/P&gt;&lt;P&gt;Also check the ambari-agent.log to see if there are any strange errors. (please share if any error/warning).&lt;/P&gt;&lt;P&gt;Also check if there is any SSL issue&lt;/P&gt;&lt;PRE&gt;openssl s_client -connect $AMBARI_SERVER_HOSTNAME:8441 
openssl s_client -connect $AMBARI_SERVER_HOSTNAME:8440&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 19:04:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186792#M61752</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-25T19:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186793#M61753</link>
      <description>&lt;P&gt;Heartbeats can be lost if an exception occurs while Ambari Server is handling the heartbeat. It can also happen if there is an SSL certificate issue between server and agent. Can you please attach the ambari-server log and a log from the ambari-agent?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:34:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186793#M61753</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-05-25T19:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186794#M61754</link>
      <description>&lt;PRE&gt;Stopping ambari-agent
Removing PID file at /var/run/ambari-agent/ambari-agent.pid
ambari-agent successfully stopped
[root@Namenode ~]# ambari-agent start
Verifying Python version compatibility...
Using python  /usr/bin/python
Checking for previously running Ambari Agent...
Starting ambari-agent
Verifying ambari-agent process status...
Ambari Agent successfully started
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
[root@Namenode ~]# vi /var/log/ambari-agent/ambari-agent.log
INFO 2017-05-25 07:22:07,809 NetUtil.py:60 - Connecting to &lt;A href="https://ambari.asotc.com:8440/connection_info" target="_blank"&gt;https://ambari.asotc.com:8440/connection_info&lt;/A&gt;
INFO 2017-05-25 07:22:07,976 security.py:54 - Server require two-way SSL authentication. Use it instead of one-way...
INFO 2017-05-25 07:22:07,976 security.py:188 - Server certicate exists, ok
INFO 2017-05-25 07:22:07,977 security.py:196 - Agent key exists, ok
INFO 2017-05-25 07:22:07,977 security.py:204 - Agent certificate exists, ok
INFO 2017-05-25 07:22:07,977 security.py:99 - SSL Connect being called.. connecting to the server
ERROR 2017-05-25 07:22:08,111 security.py:86 - Two-way SSL authentication failed. Ensure that server and agent certificates were signed by the same CA and restart the agent.
In order to receive a new agent certificate, remove existing certificate file from keys directory. As a workaround you can turn off two-way SSL authentication in server configuration(ambari.properties)
Exiting..
ERROR 2017-05-25 07:22:08,112 Controller.py:350 - Unable to reconnect to &lt;A href="https://ambari.asotc.com:8441/agent/v1/heartbeat/namenode.asotc.com" target="_blank"&gt;https://ambari.asotc.com:8441/agent/v1/heartbeat/namenode.asotc.com&lt;/A&gt; (attempts=1699, details=Request to &lt;A href="https://ambari.asotc.com:8441/agent/v1/heartbeat/namenode.asotc.com" target="_blank"&gt;https://ambari.asotc.com:8441/agent/v1/heartbeat/namenode.asotc.com&lt;/A&gt; failed due to [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765))
INFO 2017-05-25 07:22:23,014 NetUtil.py:60 - Connecting to &lt;A href="https://ambari.asotc.com:8440/connection_info" target="_blank"&gt;https://ambari.asotc.com:8440/connection_info&lt;/A&gt;

Looks like its connecting to SSL. I have not enabled SSL&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 19:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186794#M61754</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-05-25T19:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186795#M61755</link>
      <description>&lt;PRE&gt;
---
SSL handshake has read 2303 bytes and written 206 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384
    Session-ID: 5926D3A2802AC3DD04F3CD1BA946AFAA8A19EACE5EE04A59AB752ACD63AC55A8
    Session-ID-ctx:
    Master-Key: D205A7AD2A675D7E61B56E0A1A28AC76E5BCCE249CB7A50F4461F5C3EF12D3C9106EAB0B68146BDC5F97849CADDCAFF9
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1495716767
    Timeout   : 300 (sec)
    Verify return code: 10 (certificate has expired)


&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 19:53:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186795#M61755</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-05-25T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186796#M61756</link>
      <description>&lt;P&gt;Looks like SSL cert is the issue on ambari-server. It expired. How can I renew it&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:54:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186796#M61756</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-05-25T19:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186797#M61757</link>
      <description>&lt;P&gt;You'll need to re-generate certificates on the Ambari Server since they are expired:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/68799/steps-to-fix-ambari-server-agent-expired-certs.html" target="_blank"&gt;https://community.hortonworks.com/articles/68799/steps-to-fix-ambari-server-agent-expired-certs.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:40:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186797#M61757</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-05-25T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186798#M61758</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1277/prakashpunj.html" nodeid="1277"&gt;@Prakash Punj&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. stop ambari-server

2. take a back of existing /var/lib/ambari-server/keys folder and empty it.

3. download the attached keys.zip file and copy it to /var/lib/ambari-server/ , your new folder structure should be like /var/lib/ambari-server/keys/ca.config,/var/lib/ambari-server/keys/db/,  - basically this is a fresh keys folder ( this is what you get when you install ambari-server )

4. Take a back up of all the Agent certs located at /var/lib/ambari-agent/keys/ in all the hosts.

5. Delete all the files under /var/lib/ambari-agent/keys/ folder

6. restart ambari-server. Note: ambari-server should create new certs under /var/lib/ambari-server/keys/ca.crt , /var/lib/ambari-server/keys/ca.key ....

7. restart ambari-agent, Note: ambari-agent should create new certs under /var/lib/ambari-server/keys/ folder

now you should see the successful heart beat from all the Agents.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 20:40:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186798#M61758</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-05-25T20:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: AMbari heart beat lost</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186799#M61759</link>
      <description>&lt;P&gt;This works. So its gonna happen once every year. Is there a solution for that. &lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 21:31:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/AMbari-heart-beat-lost/m-p/186799#M61759</guid>
      <dc:creator>prakashpunj</dc:creator>
      <dc:date>2017-05-26T21:31:31Z</dc:date>
    </item>
  </channel>
</rss>

