Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Solved Go to solution
Highlighted

I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

New Contributor

OS: RHL 7

I am still not very clear regarding the FQDN of the system needed while registering the host.

The screenshot is attached.

94394-screenshot-113.png

1 ACCEPTED SOLUTION

Accepted Solutions

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Hi @Shraddha Singh,

It looks like your ambari-agent is running but its nota ble to contact the Ambari-server to TLS issue.

Can you carefully read this article and see if it helps you ?

https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.h...

additionaly try disable Cert verification in python refering to :https://access.redhat.com/articles/2039753#controlling-certificate-verification-7

sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg

Please accept this answer if it helps you

11 REPLIES 11

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Hi @Shraddha Singh,

From the screenshot its not evident what error you are facing.

Can you go click on the hostname and see what error its showing.

also Have you followed the pre-requisites to prepare all the nodes?

is passwordless ssh is set :https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-installation-ppc/content/set_up_password-less_ssh.html

and your newly added node is able to contact the ambari-server without password ?

Also make sure that the following command returns the correct output: (On all hosts)

hostname -f

also you can try installing ambari-agents manually if required : https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-administration/content/install_th...

and follow the below steps to make sure it will get connected to correct ambari-server and retry this confirm hosts :

Steps

* Configure the Ambari Agent by editing the ambari-agent.ini file as shown in the following example:

  1. vi /etc/ambari-agent/conf/ambari-agent.ini
    	
    [server]
    	
    hostname=<your.ambari.server.hostname>
    	
    url_port=8440
    	
    secured_url_port=8441
    	
  2. Start the agent on every host in your cluster.
    ambari-agent start
    	

    The agent registers with the Server on start.

Please accept this answer if this solves your query and you found it helpful

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

New Contributor

Hi @Akhil S Naik

I have manually nstalled the agent and made the changes in .ini file of ambari-agent and restarted everything but still I am getting the error that

Registration with the server failed.

I have changes the server name of .ini file as the output of hostname -f command.

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Hi @Shraddha Singh,

Can you do a tail -f on /var/log/ambari-agent/ambari-agent.log

[root@asnaik-script-amariadb1 ~]# tail -f /var/log/ambari-agent/ambari-agent.log
INFO 2018-11-27 06:30:05,217 logger.py:75 - Testing the JVM's JCE policy to see it if supports an unlimited key length.
INFO 2018-11-27 06:30:05,490 Hardware.py:176 - Some mount points were ignored: /, /dev, /dev/shm, /run, /sys/fs/cgroup, /run/user/0
INFO 2018-11-27 06:30:05,494 Controller.py:320 - Sending Heartbeat (id = 1279793)
INFO 2018-11-27 06:30:05,499 Controller.py:333 - Heartbeat response received (id = 1279794)
INFO 2018-11-27 06:30:05,499 Controller.py:342 - Heartbeat interval is 1 seconds
INFO 2018-11-27 06:30:05,499 Controller.py:380 - Updating configurations from heartbeat
INFO 2018-11-27 06:30:05,499 Controller.py:389 - Adding cancel/execution commands
INFO 2018-11-27 06:30:05,500 Controller.py:406 - Adding recovery commands
INFO 2018-11-27 06:30:05,500 Controller.py:475 - Waiting 0.9 for next heartbeat
INFO 2018-11-27 06:30:06,401 Controller.py:482 - Wait for next heartbeat over

and see if you can find these in ambari-agent log

if ambari-agent is able to send heartbeat to ambari-server then we should see

tail -f /var/log/ambari-server/ambari-server.log

and see what exception or error you are finding when you press rety.

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

New Contributor

The output of the command is attached: 8433 as i changed the url port to 8433,it is still not reachable

94397-screenshot-116.png

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

New Contributor

Hi @Akhil S Naik

I got the following result after running the command:

WARNING 2018-11-27 13:42:59,507 NetUtil.py:124 - Server at https://devdp30.eng.s sn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:09,507 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:09,509 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:09,509 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:09,509 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:19,510 main.py:439 - Connecting to Ambari server at https://devdp30.eng.ssn:8440 (172.23.222.59) INFO 2018-11-27 13:43:19,510 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:19,511 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:19,511 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:19,511 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds... INFO 2018-11-27 13:43:29,512 NetUtil.py:70 - Connecting to https://devdp30.eng.ssn:8440/ca ERROR 2018-11-27 13:43:29,513 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2018-11-27 13:43:29,513 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2018-11-27 13:43:29,514 NetUtil.py:124 - Server at https://devdp30.eng.ssn:8440 is not reachable, sleeping for 10 seconds...

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Expert Contributor

Hi @Shraddha Singh,

Follow the below prerequisites for installation

1. Enable NTP

$systemctl enable ntpd.service   or $service ntpd start
$systemctl status ntpd

2. Setting up Host Name

$vim /etc/hosts
<ip_address> <fully.qualified.domain.name> <alias_name>

3. Use the "hostname" command to set the hostname on each host in your cluster.

$hostname  <fully.qualified.domain.name>

4. $vim /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=<fully.qualified.domain.name>

5. Verification

$hostname –f
<FQDN>
$hostname –i
<HOST_IP>

6. Configuring iptables

$service firewalld stop or   $systemclt disable firewalld.service
$service firewalld status

If you want to pre-install the Agents, you can perform a manual agent setup. This involves two steps:

  • Configuring the Ambari Repo
  • Install Ambari Agents

1. Configuring Ambari Repo

Log in to your host as root 
Add ambari.repo file to /etc/yum.repos.d/

2. Confirm that the repository is configured by checking the repolist

$yum repolist

3. Install Ambari agent

$yum install ambari-agent

4. Configure the Ambari Agent by editing the ambari-agent.ini file as shown in the following example

$vim /etc/ambari-agent/conf/ambari-agent.ini

[server]
  hostname=<your.ambari.server.hostname>
  url_port=8440
  secured_url_port=8441

5. Start agent on all host

$ambari-agent start

6. Go to Ambari UI -> Install options -> select Perform manual registration -> Next

Hope this helps. Thanks

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

New Contributor

Hi @Sampath Kumar,

I have followed all the steps stated above already for the installation but still while registering I am getting error.

devdp30.eng.ssn - is the hostname I have given and changed in all the required places.

94395-screenshot-115.png

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

Hi @Shraddha Singh,

It looks like your ambari-agent is running but its nota ble to contact the Ambari-server to TLS issue.

Can you carefully read this article and see if it helps you ?

https://community.hortonworks.com/articles/188269/javapython-updates-and-ambari-agent-tls-settings.h...

additionaly try disable Cert verification in python refering to :https://access.redhat.com/articles/2039753#controlling-certificate-verification-7

sed -i 's/verify=platform_default/verify=disable/'/etc/python/cert-verification.cfg

Please accept this answer if it helps you

Re: I am not able to register the host. Error: registration with the server failed. It is a single node where ambari-server and agent is installed on the same host.

@Shraddha Singh were you able to resolve the issue with the abouve blog ?