Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Unbale to register host in Ambari

avatar
Explorer

Hi,

I am setting up a cluster with 4 slaves and a master. The master has public IP and internal IP. The Ambari server is accessible through public IP. Our etc/hosts has both entries for public and internal IP.

10.xx.xx.xx ILDSM.<domain> ILDSM 192.xxx.xx.xx ILDSM1.<domain> ILDSM1

I am using internal IP to register hosts in ambari. But it fails. My passwordless ssh is set. SeLinux is disabled(permissive), GSSAPIAuthentication=NO.

Full log and configuration files are attached.

Connecting to https://ildsm.<domainname>:8440/ca ', None) ('WARNING 2017-06-22 11:26:51,227 NetUtil.py:116 - Server at https://ildsm.<domainname>:8440 is not reachable, sleeping for 10 seconds... INFO 2017-06-22 11:27:01,227 NetUtil.py:62 - Connecting to https://ildsm.<domainname>:8440/ca WARNING 2017-06-22 11:27:01,228 NetUtil.py:93 - Failed to connect to https://ildsm.<domainname>:8440/ca due to [Errno 111] Connection refused WARNING 2017-06-22 11:27:01,228 NetUtil.py:116 - Server at https://ildsm.<domainname>:8440 is not reachable, sleeping for 10 seconds... INFO 2017-06-22 11:27:11,229 NetUtil.py:62 - Connecting to https://ildsm.<domainname>:8440/ca

Why does it try to connect via https? [https://ildsm.<domainname>:8440] I am able to telnet to port 8440.

I am not able to hit this url https://ildsm.<domainname>:8440 since this is an internal IP but the Ambari serevr GUI lods via the http://PublicIP:8080. I am not sure where I am going wrong. Please help.

ambari-agent-host-exception.txtambari-server-host-exception.txtambari-agent.txt

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Tania Khan

The followign line indicates that you have entered wrong entries inside the "/etc/hosts" file of all the hosts.

https://ildsm.:8440 is not reachable

**Notice** an extra DOT at the end of the "ildsm." that is causing the issue here.

.

If you want to set the Ambari server host name as "ildsm" then the "/etc/hosts" file entry should be : Please remove the ".<domain> part from the "/etc/hosts" file entry.

10.xx.xx.xx ILDSM
192.xxx.xx.xx ILDSM1

.

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

# hostname -f 

Then restart the ambari server and register agents.

Regarding correct hostname setup, Please refer to the following links:

1. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/set_the_host...

2. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/edit_the_net...

.

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Tania Khan

The followign line indicates that you have entered wrong entries inside the "/etc/hosts" file of all the hosts.

https://ildsm.:8440 is not reachable

**Notice** an extra DOT at the end of the "ildsm." that is causing the issue here.

.

If you want to set the Ambari server host name as "ildsm" then the "/etc/hosts" file entry should be : Please remove the ".<domain> part from the "/etc/hosts" file entry.

10.xx.xx.xx ILDSM
192.xxx.xx.xx ILDSM1

.

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

# hostname -f 

Then restart the ambari server and register agents.

Regarding correct hostname setup, Please refer to the following links:

1. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/set_the_host...

2. https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-installation/content/edit_the_net...

.

avatar
Explorer

Thanks Jay for your prompt response. Yes the host name set up is as per the links you mentioned. hostname -f returns the FQDN in all the hosts.

I am using fully qualified domain name. so my entries in /etc/hosts are like

10.xx.xx.xx ILDSM.xyz.abc.in ILDSM

192.xxx.xx.xx ILDSM1.xyz.abc.in ILDSM1

Can we use only hostname? without FQDN?

I have one question when we register the hosts in abmari, do we need to give the hostname that is associated with the public IP or the internal IP? I have used internal ip.

  1. https://ildsm.:8440 is not reachable -- how to fix this? Is this because the IP is internal and not accessible? or https is causing the issue.?

My ambari server runs with the IP and failing to load if I provide the hostname

http://10.xxx.x.xx:8080 - loads

http://ildsm:8080 or http://ildsm:8080 -- fails.

Please guide me to resolve these.