<?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: Registration with the server failed on EC2 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161694#M24723</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/415/rnettleton.html" nodeid="415"&gt;@rnettleton&lt;/A&gt;, I got to similar solution while waiting for question to be moderated, but your answer definitely makes it clearer why it wasn't working!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 20:27:56 GMT</pubDate>
    <dc:creator>moisseev_yan</dc:creator>
    <dc:date>2016-04-08T20:27:56Z</dc:date>
    <item>
      <title>Registration with the server failed on EC2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161692#M24721</link>
      <description>&lt;P&gt;
	I am very new to all this stuff, but as a learning exercise I am trying to set up 4-node ambari cluster on EC2. I have master node that has both agent and server installed and three nodes with agents, all running on centOS 6. &lt;/P&gt;&lt;P&gt;
	When I am trying to make a cluster using UI and manual host registration, all nodes except master fail with the following error:&lt;/P&gt;&lt;PRE&gt;Registering with the server...
Registration with the server failed.&lt;/PRE&gt;&lt;P&gt;Though I got agents running already and hosts set up, I tried using automatic registration with SSH and got more verbose error: &lt;/P&gt;&lt;PRE&gt;==========================
Creating target directory...
==========================

Command start time 2016-04-08 06:34:14

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Copying common functions script...
==========================

Command start time 2016-04-08 06:34:14

scp /usr/lib/python2.6/site-packages/ambari_commons
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Copying OS type check script...
==========================

Command start time 2016-04-08 06:34:14

scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Running OS type check...
==========================

Command start time 2016-04-08 06:34:14
Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Checking 'sudo' package on remote host...
==========================

Command start time 2016-04-08 06:34:14
sudo-1.8.6p3-20.el6_7.x86_64

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Copying repo file to 'tmp' folder...
==========================

Command start time 2016-04-08 06:34:14

scp /etc/yum.repos.d/ambari.repo
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Moving file to repo dir...
==========================

Command start time 2016-04-08 06:34:14

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:14

==========================
Changing permissions for ambari.repo...
==========================

Command start time 2016-04-08 06:34:14

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:15

==========================
Copying setup script file...
==========================

Command start time 2016-04-08 06:34:15

scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:15

==========================
Running setup agent script...
==========================

Command start time 2016-04-08 06:34:15
('WARNING 2016-04-08 06:34:21,213 AlertSchedulerHandler.py:243 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2016-04-08 06:34:21,213 AlertSchedulerHandler.py:139 - [AlertScheduler] Starting &amp;lt;ambari_agent.apscheduler.scheduler.Scheduler object at 0x1230a50&amp;gt;; currently running: False
INFO 2016-04-08 06:34:21,217 hostname.py:86 - Read public hostname \'ec2-52-63-181-16.ap-southeast-2.compute.amazonaws.com\' from &lt;A href="http://169.254.169.254/latest/meta-data/public-hostname" target="_blank"&gt;http://169.254.169.254/latest/meta-data/public-hostname&lt;/A&gt;
INFO 2016-04-08 06:34:21,220 logger.py:67 - call[\'test -w /\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,224 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,224 logger.py:67 - call[\'test -w /dev/shm\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,228 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,228 logger.py:67 - call[\'test -w /grid/1\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,232 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,232 logger.py:67 - call[\'test -w /grid/2\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,236 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,236 logger.py:67 - call[\'test -w /grid/3\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,239 logger.py:67 - call returned (0, \'\')
ERROR 2016-04-08 06:34:21,251 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in &amp;lt;module&amp;gt;
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 297, in main
    ExitHelper.execute_cleanup()
TypeError: unbound method execute_cleanup() must be called with ExitHelper instance as first argument (got nothing instead)
', None)
('WARNING 2016-04-08 06:34:21,213 AlertSchedulerHandler.py:243 - [AlertScheduler] /var/lib/ambari-agent/cache/alerts/definitions.json not found or invalid. No alerts will be scheduled until registration occurs.
INFO 2016-04-08 06:34:21,213 AlertSchedulerHandler.py:139 - [AlertScheduler] Starting &amp;lt;ambari_agent.apscheduler.scheduler.Scheduler object at 0x1230a50&amp;gt;; currently running: False
INFO 2016-04-08 06:34:21,217 hostname.py:86 - Read public hostname \'ec2-52-63-181-16.ap-southeast-2.compute.amazonaws.com\' from &lt;A href="http://169.254.169.254/latest/meta-data/public-hostname" target="_blank"&gt;http://169.254.169.254/latest/meta-data/public-hostname&lt;/A&gt;
INFO 2016-04-08 06:34:21,220 logger.py:67 - call[\'test -w /\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,224 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,224 logger.py:67 - call[\'test -w /dev/shm\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,228 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,228 logger.py:67 - call[\'test -w /grid/1\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,232 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,232 logger.py:67 - call[\'test -w /grid/2\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,236 logger.py:67 - call returned (0, \'\')
INFO 2016-04-08 06:34:21,236 logger.py:67 - call[\'test -w /grid/3\'] {\'sudo\': True, \'timeout\': 5}
INFO 2016-04-08 06:34:21,239 logger.py:67 - call returned (0, \'\')
ERROR 2016-04-08 06:34:21,251 main.py:309 - Fatal exception occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 306, in &amp;lt;module&amp;gt;
    main(heartbeat_stop_callback)
  File "/usr/lib/python2.6/site-packages/ambari_agent/main.py", line 297, in main
    ExitHelper.execute_cleanup()
TypeError: unbound method execute_cleanup() must be called with ExitHelper instance as first argument (got nothing instead)
', None)

Connection to ec2node1.hdp2 closed.
SSH command execution finished
host=ec2node1.hdp2, exitcode=0
Command end time 2016-04-08 06:34:23

Registering with the server...
Registration with the server failed.&lt;/PRE&gt;&lt;P&gt;Any help or pointers would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:12:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161692#M24721</guid>
      <dc:creator>moisseev_yan</dc:creator>
      <dc:date>2022-09-16T10:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Registration with the server failed on EC2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161693#M24722</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/4452/moisseevyan.html" nodeid="4452"&gt;@Jan Andreev&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'm not exactly sure why you're seeing the issue with automatic registration, but if you're just trying to get things up and running manually, you can probably just modify the ambari-agent config files.&lt;/P&gt;&lt;P&gt;You manual setup step may have failed if the agents are not configured to point to the ambari-server instance in your cluster.  You mentioned that the registration doesn't fail on the ambari-server node, and that makes sense, since the default hostname pointer is "localhost".  &lt;/P&gt;&lt;P&gt;For manual configuration, you can just set this up in the ambari-agent config file, on Centos 6 it will be in:&lt;/P&gt;&lt;P&gt;/etc/ambari-agent/conf/ambari-agent.ini&lt;/P&gt;&lt;P&gt;Just set the "hostname" property to be the DNS name for the node that has ambari-server running, and restart your ambari-agent instances.  &lt;/P&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 20:13:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161693#M24722</guid>
      <dc:creator>rnettleton</dc:creator>
      <dc:date>2016-04-08T20:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Registration with the server failed on EC2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161694#M24723</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/415/rnettleton.html" nodeid="415"&gt;@rnettleton&lt;/A&gt;, I got to similar solution while waiting for question to be moderated, but your answer definitely makes it clearer why it wasn't working!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 20:27:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161694#M24723</guid>
      <dc:creator>moisseev_yan</dc:creator>
      <dc:date>2016-04-08T20:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Registration with the server failed on EC2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161695#M24724</link>
      <description>&lt;P&gt;You are running into AMBARI-14431. This should happen on the latest. Can you use the latest or update your script manually?&lt;/P&gt;</description>
      <pubDate>Sat, 09 Apr 2016 02:16:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161695#M24724</guid>
      <dc:creator>jluniya</dc:creator>
      <dc:date>2016-04-09T02:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Registration with the server failed on EC2</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161696#M24725</link>
      <description>&lt;P&gt;Check your .ini file on all the slaves/agents &lt;/P&gt;&lt;P&gt;/etc/ambari-agent/conf/ambari-agent.ini&lt;/P&gt;&lt;P&gt;And then make sure your ports below are open on your MASTER&lt;/P&gt;&lt;P&gt;url_port=8440 &lt;/P&gt;&lt;P&gt;secured_url_port=8441
&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 22:23:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Registration-with-the-server-failed-on-EC2/m-p/161696#M24725</guid>
      <dc:creator>kalidindi_kiran</dc:creator>
      <dc:date>2016-06-21T22:23:59Z</dc:date>
    </item>
  </channel>
</rss>

