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.

is it possible to change hostname fqdn to Ips only in ambari ?

Solved Go to solution

is it possible to change hostname fqdn to Ips only in ambari ?

Guru

Actually I have enabled proxy web server for yarn .and when I am looking logs for running jobs then it is proxy server redirecting me to one of the node manager where task is running and when I m clicking on on Logs then it is giving me following error.

"This site can’t be reached w2.hdp22’s server DNS address could not be found."

Tough if I change host fqdn to ips in URL string then it is working fine.

http://w2.hdp22:8042/node/containerlogs/container_e18_1533570782201_0002_01_000001/root to http://196.152.56.51:8042/node/containerlogs/container_e18_1533570782201_0002_01_000001/root

So I am thinking is this the good idea to change FQDN to ips or is there any other way ?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: is it possible to change hostname fqdn to Ips only in ambari ?

Hi @Saurabh ,

Its not possible to register a host with IP.its suggested using 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 corresponding 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

Registeringwith the server...Registrationwith the server failed.

you won't find any errors in ambari-server logs.

What I can suggest you is changing the yarn configs replace it with IP's instead of FQDN .

See if that works.

If this solves your issue, please mark this as accepted.

5 REPLIES 5

Re: is it possible to change hostname fqdn to Ips only in ambari ?

Hi @Saurabh ,

Its not possible to register a host with IP.its suggested using 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 corresponding 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

Registeringwith the server...Registrationwith the server failed.

you won't find any errors in ambari-server logs.

What I can suggest you is changing the yarn configs replace it with IP's instead of FQDN .

See if that works.

If this solves your issue, please mark this as accepted.

Re: is it possible to change hostname fqdn to Ips only in ambari ?

Guru

@Akhil S Naik How to replace IP's instead of FQDN ? I do not see any option to change it.

Re: is it possible to change hostname fqdn to Ips only in ambari ?

Hi @Saurabh,

If you add a custom yarn-site.xml property on Ambari like below

yarn.nodemanager.webapp.https.address :  <IP-ADDRESS>:8042

I see this can help you.

you can try AFAIK it has to work.

If it doesnt there is very little can be done from ambari point of view.

Hope this helps.

Highlighted

Re: is it possible to change hostname fqdn to Ips only in ambari ?

Hi @Saurabh,

Please login and accept the answer if this helped you.

Re: is it possible to change hostname fqdn to Ips only in ambari ?

@Saurabh

If you have hostname issues while opening the Quick links from Ambari then you can configure the public hostname with your IP address in the agent hosts. then Ambari would use those name/ip address while opening. here you can find the documentation on setting up public hostname (or IP) https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.0.0/bk_ambari-administration/content/ch_amb_ref...

If you have issues inside YARN then there is very little can be done in Ambari point of view.

Don't have an account?
Coming from Hortonworks? Activate your account here