I'm trying to install a small HDP cluster on AWS EC2. It's working fine as expected except one painful issue related to hostname.
In my /etc/hosts, I have this (example):
10.0.0.1 hdpmaster.emp.net hdpmaster ip-10-0-0-1.compute.internal
10.0.0.2 hdprm.emp.net hdprm ip-10-0-0-2.compute.internal
10.0.0.3 hdp1.emp.net hdp1 ip-10-0-0-3.compute.internal
10.0.0.4 hdp2.emp.net hdp2 ip-10-0-0-4.compute.internal
I used this when setting up my cluster through Ambari:
All services are running as expected but I need to change URL every time if I want to browse them. Ambari is redirecting everything based on the hostname (which is expected), but is there any way not to get the actual IP address on the redirect link instead of the hostname?
I get this to track an app (RM):
Unless I change that to this, I'm unable to browse it:
I do not want to assign elastic public IP to each of those machines (not feasible) and use public dns name during installation, so what I can do for private IP address? Did I miss something? Or I need to use some browser plug-in to redirect to the expected url? Or I need to use the exact IP address (10.0.0.2) during installation from Ambari?
Thanks in advance.