Support Questions

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

can we register a new host with IP not a FQDN

avatar
Guru

can we register a new host with IP not a FQDN ?

1 ACCEPTED SOLUTION

avatar

Hi @Saurabh ,

Its not possible to register a host with IP.its suggested to use the FQDN so that it will be easy to change ip in /etc/hosts if IP changes in future.

IF you try to give the IP in Add Host wizard it will show this coresponding error message :

The following hostnames are not valid FQDNs:

172.26.69.17

This may cause problems during installation. Do you want to continue?

Later the registration will fail with below error message

Registering with the server...
Registration with the server failed.

you wont find any errors in ambari-server logs.

Then I tried with FQDN of corresponding IP . its success.

Hope this helps.

If you find this answer helpfull please mark as accepted which will help other users.

View solution in original post

3 REPLIES 3

avatar

Hi @Saurabh ,

Its not possible to register a host with IP.its suggested to use the FQDN so that it will be easy to change ip in /etc/hosts if IP changes in future.

IF you try to give the IP in Add Host wizard it will show this coresponding error message :

The following hostnames are not valid FQDNs:

172.26.69.17

This may cause problems during installation. Do you want to continue?

Later the registration will fail with below error message

Registering with the server...
Registration with the server failed.

you wont find any errors in ambari-server logs.

Then I tried with FQDN of corresponding IP . its success.

Hope this helps.

If you find this answer helpfull please mark as accepted which will help other users.

avatar

Hi @Saurabh ,

Please login and mark this answer as accepted if you found it helpfull 🙂

avatar
Super Guru

@Saurabh use your /etc/hosts file to set a FQDN to the ip address within the ambari-server and all nodes. This will do the same thing as actually registering the DNS and IP publically within the scope of your cluster.

Using /etc/hosts you can make the FQDN to be whatever you want:

[ambari@ks3503-D050 ~]$ cat /etc/hosts
108.100.46.50    ks3503-d050    ks3503-d050.domain.com
108.100.46.51    ks3503-d051    ks3503-d051.domain.com
108.100.46.52    ks3503-d052    ks3503-d052.domain.com
108.100.46.53    ks3503-d053    ks3503-d053.domain.com

Accept this answer if this /etc/hosts solution helps you.