I have created 6 nodes cluster 3 masters and 3 workers on aws using private ip's and vpn etc.. there is no public ip is assigned for the instance.
now i am able to ping the instances using private ip's only when i connect through vpn.
i have changed hostnames and i have added all private ip's and aliases in /etc/hosts file.
my ambari is in one of the master nodes lets say "master01.abc.com". but when i try to access ambari using "master01.abc.com:8080" it is not giving me the access.
when i try to use private ip instead of master01.abc.com i am able to access to it.
now my question is how can i get the ambari access through "master01.abc.com:8080". Please help me how to resolve this.
Thanks in advance
if i want to give resource manager web ui (8088) to others. do we need to add /etc/hosts entries in their laptops ?
/etc/hosts file just translates the hostname to the ip. Even without the mapping you can open the urls by passing the ip. If you want to access it using hostname, then you need the entries in /etc/hosts files. It doesn't do any access control.