<?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 Registering nodes Fails in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236284#M198097</link>
    <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/107321-error-ambari.txt"&gt;error_ambari.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I try to install ambari agent in 2 nodes with the ambari wizard but is fails, I review the logs and I saw the following error:&lt;/P&gt;&lt;P&gt;Internal Exception: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I attached the log file and  hope some can help me with this &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Saul Ramirez&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 07:19:36 GMT</pubDate>
    <dc:creator>chuy1106</dc:creator>
    <dc:date>2019-03-21T07:19:36Z</dc:date>
    <item>
      <title>Registering nodes Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236284#M198097</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/107321-error-ambari.txt"&gt;error_ambari.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I try to install ambari agent in 2 nodes with the ambari wizard but is fails, I review the logs and I saw the following error:&lt;/P&gt;&lt;P&gt;Internal Exception: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I attached the log file and  hope some can help me with this &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Saul Ramirez&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 07:19:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236284#M198097</guid>
      <dc:creator>chuy1106</dc:creator>
      <dc:date>2019-03-21T07:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Registering nodes Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236285#M198098</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/81151/chuy1106.html" nodeid="81151"&gt;@Saul Ramirez&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like your Public_hostname for the agent is not right. As we see thsat the public_hostname is being taken as :&lt;/P&gt;&lt;PRE&gt;\'publicHostname\': \'&amp;lt;!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"&amp;gt;\\r\
&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;\\r\
&amp;lt;head&amp;gt;\\r\
&amp;lt;meta content="text/html; charset=utf-8" http-equiv="content-type" /&amp;gt;\\r\
&amp;lt;meta content="no-cache" http-equiv="pragma" /&amp;gt;\\r\
&amp;lt;title&amp;gt;waiting...&amp;lt;/title&amp;gt;\\r\
&amp;lt;script type="text/javascript"&amp;gt;\\r\&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Thats why you are getting too long column value for &lt;STRONG&gt;public_hostname&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;org.eclipse.persistence.exceptions.DatabaseException\
Internal Exception: org.postgresql.util.PSQLException: ERROR: el valor es demasiado largo para el tipo character varying(255)\
Error Code: 0\
Call: UPDATE hosts SET total_mem = ?, host_attributes = ?, public_host_name = ? WHERE (host_id = ?)\
\\tbind =&amp;gt; [4 parameters bound]\&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Can you please run the following command on yourt host which you re trying to add to see if it is returning correct FQDN?&lt;/P&gt;&lt;PRE&gt;# hostname -f

&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You can refer to the following Article which i wrote sometime back to fidn the difference between Public_hostname and hostname and how to fix it:&lt;BR /&gt;&lt;A href="https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-host-n.html" target="_blank"&gt;https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-host-n.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 08:05:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236285#M198098</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-03-21T08:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Registering nodes Fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236286#M198099</link>
      <description>&lt;P&gt;Hi &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&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks, I did your suggestion and I could  move up but now I had a another issue.&lt;/P&gt;&lt;P&gt;I review the agent logs file and I found the below:&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,645 NetUtil.py:61 - Connecting to &lt;A href="https://hdp:8440/connection_info" target="_blank"&gt;https://hdp:8440/connection_info&lt;/A&gt;&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,769 security.py:59 - Server require two-way SSL authentication. Use it instead of one-way...&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,769 security.py:61 - Connecting to wss://hdp:8441/agent/stomp/v1&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,769 security.py:224 - Server certicate exists, ok&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,770 security.py:232 - Agent key exists, ok&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,770 security.py:240 - Agent certificate exists, ok&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:32,839 transport.py:329 - Starting receiver loop&lt;/P&gt;&lt;P&gt;INFO 2019-03-20 21:20:42,841 transport.py:358 - Receiver loop ended&lt;/P&gt;&lt;P&gt;ERROR 2019-03-20 21:20:42,841 HeartbeatThread.py:108 - Exception in HeartbeatThread. Re-running the registration&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 95, in run&lt;/P&gt;&lt;P&gt;    self.register()&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 121, in register&lt;/P&gt;&lt;P&gt;    self.establish_connection()&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_agent/HeartbeatThread.py", line 247, in establish_connection&lt;/P&gt;&lt;P&gt;    self.connection = connection_helper.connect()&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_agent/security.py", line 87, in connect&lt;/P&gt;&lt;P&gt;    self.establish_connection(conn)&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_agent/security.py", line 108, in establish_connection&lt;/P&gt;&lt;P&gt;    conn.connect(wait=True)&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_stomp/protocol.py", line 505, in connect&lt;/P&gt;&lt;P&gt;    self.transport.wait_for_connection()&lt;/P&gt;&lt;P&gt;  File "/usr/lib/ambari-agent/lib/ambari_stomp/adapter/websocket.py", line 83, in wait_for_connection&lt;/P&gt;&lt;P&gt;    raise ConnectionResponseTimeout("W&lt;/P&gt;&lt;P&gt;ConnectionResponseTimeout: Waiting for connection confirmation timed out&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I attached a part the log file&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saul Ramirez&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/107341-error-agent.txt"&gt;error_agent.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 21:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Registering-nodes-Fails/m-p/236286#M198099</guid>
      <dc:creator>chuy1106</dc:creator>
      <dc:date>2019-03-21T21:08:33Z</dc:date>
    </item>
  </channel>
</rss>

