Created on 08-07-2018 03:21 PM - edited 09-16-2022 06:34 AM
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 ?
Created 08-07-2018 04:07 PM
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.
Created 08-07-2018 04:07 PM
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.
Created 08-08-2018 01:04 PM
@Akhil S Naik How to replace IP's instead of FQDN ? I do not see any option to change it.
Created 08-08-2018 04:29 PM
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.
Created 08-13-2018 01:02 PM
Hi @Saurabh,
Please login and accept the answer if this helped you.
Created 08-07-2018 04:39 PM
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.