Hi, even I am facing the same trouble when trying to load Ambari web page, it shows 502 error.
It was working fine 2 days back but the error is showing from today when I tried to login in the morning.
I have tried all the replies stated above, none worked. I will be grateful if someone can resolve this issue at the earliest.
You are trying to access the sandbox:8080 from your laptop because localhost:8080 translates to your local windows machine. To be able to access sandbox ambari from your Windows machine, you should have an entry in your hosts file in C:\Windows\System32\drivers\etc with the format IP:FQDN:ALIAS for example
# localhost name resolution is handled within DNS itself. #127.0.0.1 localhost #::1 localhost 127.0.0.1 sandbox.hortonworks.com sandbox
With the above entry assuming you sandbox IP is correctly you can access your cluster through
I followed your suggestion and modified HOSTS file in the C:\Windows\System32\drivers\etc on my Windows 7 machine where the VirtualBox/Sandbox is installed, it still prompts me the 502 error.
Here are the hosts file:
127.0.0.1 sandbox.hortonworks.com sandbox
I used the Windows7 built-in Resource Monitor to inspect which application is using 8080, and it shows VirtualBox:
Since VirtualBox is where the sandbox resides, there is no way for me to terminate it. How do I then access Ambari from localhost?
Thank you very much if you can kindly help me to sort it out at your earliest convenience.