<?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 Ambari host registration with server failed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170814#M50076</link>
    <description>&lt;P&gt;I am trying to build a three node HDP cluster but getting below error during host registration. I am able to&lt;STRONG&gt; ssh &lt;/STRONG&gt;from node1.example.com to other two nodes without password.&lt;A href="http://ec2-52-89-10-2.us-west-2.compute.amazonaws.com/storage/attachments/10770-screenshot-from-2016-10-23-11-08-52.png"&gt;screenshot-from-2016-10-23-11-08-52.png&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;node1.example.com - ambari-server running
&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;node2.example.com - ambari-agent running&lt;/STRONG&gt;
&lt;UL&gt;&lt;LI&gt;vi /etc/ambari-agent/conf/ambari-agent.ini&lt;UL&gt;&lt;LI&gt;hostname = node1.example.com&lt;/LI&gt;&lt;LI&gt;url_port = 8440&lt;/LI&gt;&lt;LI&gt;secured_url_port = 8441&lt;/LI&gt;&lt;LI&gt;ip_address = 192.168.0.1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;node3.example.com - ambari-agent running
&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;node4.example.com - local repository where Apache web server is running&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Ambari - 2.4.2.0, HDP - 2.4.0.0 and cent os 7.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is the missing part here? Please help!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log: node2.example.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;==========================
Creating target directory...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:46&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:47&lt;/P&gt;&lt;P&gt;==========================
Copying ambari sudo script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:47&lt;/P&gt;&lt;P&gt;scp /var/lib/ambari-server/ambari-sudo.sh
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:50&lt;/P&gt;&lt;P&gt;==========================
Copying common functions script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:50&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_commons
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:55&lt;/P&gt;&lt;P&gt;==========================
Copying OS type check script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:55&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:09&lt;/P&gt;&lt;P&gt;==========================
Running OS type check...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:09
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:16&lt;/P&gt;&lt;P&gt;==========================
Checking 'sudo' package on remote host...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:16&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:17&lt;/P&gt;&lt;P&gt;==========================
Copying setup script file...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:24&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:26&lt;/P&gt;&lt;P&gt;==========================
Running setup agent script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:26
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=255
Command end time 2016-12-25 00:21:47ERROR: Bootstrap of host node2.example.com fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Connection to node2.example.com closed.STDOUT: (' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;BR - Sampath&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6354i9F5D1E5DD2629353/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screenshot-from-2016-10-23-11-08-52.png" title="screenshot-from-2016-10-23-11-08-52.png" /&gt;</description>
    <pubDate>Sun, 25 Dec 2016 04:00:03 GMT</pubDate>
    <dc:creator>sampathkumar_ma</dc:creator>
    <dc:date>2016-12-25T04:00:03Z</dc:date>
    <item>
      <title>Ambari host registration with server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170814#M50076</link>
      <description>&lt;P&gt;I am trying to build a three node HDP cluster but getting below error during host registration. I am able to&lt;STRONG&gt; ssh &lt;/STRONG&gt;from node1.example.com to other two nodes without password.&lt;A href="http://ec2-52-89-10-2.us-west-2.compute.amazonaws.com/storage/attachments/10770-screenshot-from-2016-10-23-11-08-52.png"&gt;screenshot-from-2016-10-23-11-08-52.png&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;node1.example.com - ambari-server running
&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;node2.example.com - ambari-agent running&lt;/STRONG&gt;
&lt;UL&gt;&lt;LI&gt;vi /etc/ambari-agent/conf/ambari-agent.ini&lt;UL&gt;&lt;LI&gt;hostname = node1.example.com&lt;/LI&gt;&lt;LI&gt;url_port = 8440&lt;/LI&gt;&lt;LI&gt;secured_url_port = 8441&lt;/LI&gt;&lt;LI&gt;ip_address = 192.168.0.1&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;node3.example.com - ambari-agent running
&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;node4.example.com - local repository where Apache web server is running&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Ambari - 2.4.2.0, HDP - 2.4.0.0 and cent os 7.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What is the missing part here? Please help!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log: node2.example.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;==========================
Creating target directory...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:46&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:47&lt;/P&gt;&lt;P&gt;==========================
Copying ambari sudo script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:47&lt;/P&gt;&lt;P&gt;scp /var/lib/ambari-server/ambari-sudo.sh
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:50&lt;/P&gt;&lt;P&gt;==========================
Copying common functions script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:50&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_commons
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:20:55&lt;/P&gt;&lt;P&gt;==========================
Copying OS type check script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:20:55&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:09&lt;/P&gt;&lt;P&gt;==========================
Running OS type check...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:09
Cluster primary/cluster OS family is redhat7 and local/current OS family is redhat7&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:16&lt;/P&gt;&lt;P&gt;==========================
Checking 'sudo' package on remote host...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:16&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:17&lt;/P&gt;&lt;P&gt;==========================
Copying setup script file...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:24&lt;/P&gt;&lt;P&gt;scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=node2.example.com, exitcode=0
Command end time 2016-12-25 00:21:26&lt;/P&gt;&lt;P&gt;==========================
Running setup agent script...
==========================&lt;/P&gt;&lt;P&gt;Command start time 2016-12-25 00:21:26
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)Connection to node2.example.com closed.
SSH command execution finished
host=node2.example.com, exitcode=255
Command end time 2016-12-25 00:21:47ERROR: Bootstrap of host node2.example.com fails because previous action finished with non-zero exit code (255)
ERROR MESSAGE: Connection to node2.example.com closed.STDOUT: (' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)
(' File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-24 23:47:25,915 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,242 main.py:90 - loglevel=logging.INFO
INFO 2016-12-25 00:08:33,246 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:120 - Data cleanup started
INFO 2016-12-25 00:08:33,248 DataCleaner.py:122 - Data cleanup finished
INFO 2016-12-25 00:08:33,328 PingPortListener.py:50 - Ping port listener started on port: 8670
WARNING 2016-12-25 00:08:33,331 main.py:351 - Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'
ERROR 2016-12-25 00:08:33,331 main.py:392 - Exiting with exception:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 387, in &amp;lt;module&amp;gt;
main(heartbeat_stop_callback)
File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 355, in main
(retries, connected, stopped) = netutil.try_to_connect(server_url, MAX_RETRIES, logger)
UnboundLocalError: local variable \'server_url\' referenced before assignment
INFO 2016-12-25 00:08:33,527 ExitHelper.py:53 - Performing cleanup before exiting...
', None)&lt;/P&gt;&lt;P&gt;Connection to node2.example.com closed.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;BR - Sampath&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6354i9F5D1E5DD2629353/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screenshot-from-2016-10-23-11-08-52.png" title="screenshot-from-2016-10-23-11-08-52.png" /&gt;</description>
      <pubDate>Sun, 25 Dec 2016 04:00:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170814#M50076</guid>
      <dc:creator>sampathkumar_ma</dc:creator>
      <dc:date>2016-12-25T04:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari host registration with server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170815#M50077</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/15087/sampathkumarmathur.html"&gt;Sampath Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Have you followed the pre-requisites to prepare all the nodes? &lt;/P&gt;&lt;P&gt;The following "Unable to determine the IP address of the Ambari server \'node1.example.com:8080\'" indicates that you did not resolve the FDQN requirement. Read this: &lt;A href="https://community.hortonworks.com/questions/42911/fqdns-are-they-necessary.html" target="_blank"&gt;https://community.hortonworks.com/questions/42911/fqdns-are-they-necessary.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Let me know.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2016 04:36:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170815#M50077</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-25T04:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari host registration with server failed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170816#M50078</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10812-yumreposd-directory.png"&gt;&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10808-deployment-hdp.png"&gt;deployment-hdp.png&lt;/A&gt; yumreposd-directory.png&lt;/P&gt;&lt;P&gt;Thank you so much. I rebuilt all the nodes and followed the pre-requisites to prepare the same. Now Ambari host registration with server is successful. But during deployment, I am getting below error message. Can you please help on this.&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;line 140, in _call_wrapper&lt;/P&gt;&lt;P&gt;result = _call(command, **kwargs_copy)&lt;/P&gt;&lt;P&gt;File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 293, in _call&lt;/P&gt;&lt;P&gt;raise ExecutionFailed(err_msg, code, out, err)&lt;/P&gt;&lt;P&gt;resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/yum -d 0 -e 0 -y install hdp-select' returned 1. One of the configured repositories failed (HDP-2.4),&lt;/P&gt;&lt;P&gt;and yum doesn't have enough cached data to continue. At this point the only&lt;/P&gt;&lt;P&gt;safe thing yum can do is fail. There are a few ways to work "fix" this:&lt;/P&gt;&lt;P&gt;1. Contact the upstream for the repository and get them to fix the problem.&lt;/P&gt;&lt;P&gt;2. Reconfigure the baseurl/etc. for the repository, to point to a working&lt;/P&gt;&lt;P&gt;upstream. This is most often useful if you are using a newer&lt;/P&gt;&lt;P&gt;distribution release than is supported by the repository (and the&lt;/P&gt;&lt;P&gt;packages for the previous distribution release still work).&lt;/P&gt;&lt;P&gt;3. Run the command with the repository temporarily disabled&lt;/P&gt;&lt;P&gt;yum --disablerepo=HDP-2.4 ...&lt;/P&gt;&lt;P&gt;4. Disable the repository permanently, so yum won't use it by default. Yum&lt;/P&gt;&lt;P&gt;will then just ignore the repository until you permanently enable it&lt;/P&gt;&lt;P&gt;again or use --enablerepo for temporary usage:&lt;/P&gt;&lt;P&gt;yum-config-manager --disable HDP-2.4&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;subscription-manager repos --disable=HDP-2.4&lt;/P&gt;&lt;P&gt;5. Configure the failing repository to be skipped, if it is unavailable.&lt;/P&gt;&lt;P&gt;Note that yum will try to contact the repo. when it runs most commands,&lt;/P&gt;&lt;P&gt;so will have to try and fail each time (and thus. yum will be be much&lt;/P&gt;&lt;P&gt;slower). If it is a very temporary problem though, this is often a nice&lt;/P&gt;&lt;P&gt;compromise:&lt;/P&gt;&lt;P&gt;yum-config-manager --save --setopt=HDP-2.4.skip_if_unavailable=true&lt;/P&gt;&lt;P&gt;failure: repodata/repomd.xml from HDP-2.4: [Errno 256] No more mirrors to try.&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/repodata/repomd.xml:"&gt;http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/repodata/repomd.xml:&lt;/A&gt; [Errno 14] HTTP Error 404 - Not Found&lt;/P&gt;&lt;P&gt;stdout: /var/lib/ambari-agent/data/output-200.txt&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,206 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,208 - Group['spark'] {}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,319 - Initializing 2 repositories&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,320 - Repository['HDP-2.4'] {'base_url': 'http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/', 'action': ['create'], 'components': [u'HDP', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP', 'mirror_list': None}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,339 - File['/etc/yum.repos.d/HDP.repo'] {'content': '[HDP-2.4]\nname=HDP-2.4\nbaseurl=http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/\n\npath=/\nenabled=1\ngpgcheck=0'}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,341 - Repository['HDP-UTILS-1.1.0.20'] {'base_url': 'http://192.168.0.12/repo/HDP-UTILS-1.1.0.20/repos/centos7/', 'action': ['create'], 'components': [u'HDP-UTILS', 'main'], 'repo_template': '[{{repo_id}}]\nname={{repo_id}}\n{% if mirror_list %}mirrorlist={{mirror_list}}{% else %}baseurl={{base_url}}{% endif %}\n\npath=/\nenabled=1\ngpgcheck=0', 'repo_file_name': 'HDP-UTILS', 'mirror_list': None}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,347 - File['/etc/yum.repos.d/HDP-UTILS.repo'] {'content': '[HDP-UTILS-1.1.0.20]\nname=HDP-UTILS-1.1.0.20\nbaseurl=http://192.168.0.12/repo/HDP-UTILS-1.1.0.20/repos/centos7/\n\npath=/\nenabled=1\ngpgcheck=0'}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,348 - Package['unzip'] {'retry_on_repo_unavailability': False, 'retry_count': 5}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,528 - Skipping installation of existing package unzip&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,528 - Package['curl'] {'retry_on_repo_unavailability': False, 'retry_count': 5}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,558 - Skipping installation of existing package curl&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,558 - Package['hdp-select'] {'retry_on_repo_unavailability': False, 'retry_count': 5}&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,593 - Installing package hdp-select ('/usr/bin/yum -d 0 -e 0 -y install hdp-select')&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,932 - Execution of '/usr/bin/yum -d 0 -e 0 -y install hdp-select' returned 1. One of the configured repositories failed (HDP-2.4),&lt;/P&gt;&lt;P&gt;and yum doesn't have enough cached data to continue. At this point the only&lt;/P&gt;&lt;P&gt;safe thing yum can do is fail. There are a few ways to work "fix" this:&lt;/P&gt;&lt;P&gt;1. Contact the upstream for the repository and get them to fix the problem.&lt;/P&gt;&lt;P&gt;2. Reconfigure the baseurl/etc. for the repository, to point to a working&lt;/P&gt;&lt;P&gt;upstream. This is most often useful if you are using a newer&lt;/P&gt;&lt;P&gt;distribution release than is supported by the repository (and the&lt;/P&gt;&lt;P&gt;packages for the previous distribution release still work).&lt;/P&gt;&lt;P&gt;3. Run the command with the repository temporarily disabled&lt;/P&gt;&lt;P&gt;yum --disablerepo=HDP-2.4 ...&lt;/P&gt;&lt;P&gt;4. Disable the repository permanently, so yum won't use it by default. Yum&lt;/P&gt;&lt;P&gt;will then just ignore the repository until you permanently enable it&lt;/P&gt;&lt;P&gt;again or use --enablerepo for temporary usage:&lt;/P&gt;&lt;P&gt;yum-config-manager --disable HDP-2.4&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;subscription-manager repos --disable=HDP-2.4&lt;/P&gt;&lt;P&gt;5. Configure the failing repository to be skipped, if it is unavailable.&lt;/P&gt;&lt;P&gt;Note that yum will try to contact the repo. when it runs most commands,&lt;/P&gt;&lt;P&gt;so will have to try and fail each time (and thus. yum will be be much&lt;/P&gt;&lt;P&gt;slower). If it is a very temporary problem though, this is often a nice&lt;/P&gt;&lt;P&gt;compromise:&lt;/P&gt;&lt;P&gt;yum-config-manager --save --setopt=HDP-2.4.skip_if_unavailable=true&lt;/P&gt;&lt;P&gt;failure: repodata/repomd.xml from HDP-2.4: [Errno 256] No more mirrors to try.&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/repodata/repomd.xml:"&gt;http://192.168.0.12/repo/HDP/centos7/2.x/updates/2.4.0.0/repodata/repomd.xml:&lt;/A&gt; [Errno 14] HTTP Error 404 - Not Found&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:41,932 - Failed to install package hdp-select. Executing '/usr/bin/yum clean metadata'&lt;/P&gt;&lt;P&gt;2016-12-26 18:21:42,267 - Retrying to install package hdp-select after 30 seconds&lt;/P&gt;&lt;P&gt;Command failed after 1 tries&lt;/P&gt;&lt;P&gt;BR-Sampath&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 21:36:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ambari-host-registration-with-server-failed/m-p/170816#M50078</guid>
      <dc:creator>sampathkumar_ma</dc:creator>
      <dc:date>2016-12-26T21:36:14Z</dc:date>
    </item>
  </channel>
</rss>

