I have deployed a CentOS 6.6 VM (hortonwoks sandbox VM) on my Windows 7 OS. The VM publishes apache spark applications through a http url. The url's have the hostname as "sandbox.hortonworks.com" (e.g.http://sandbox.hortonworks.com:8088/proxy/application_1430918431488_0001/). All the port forwarding is set up and is working as expected. I can access the url using http://localhost:8088/proxy/application_1430918431488_0001/.
To access the url as is (i.e http://sandbox.hortonworks.com:8088/proxy/application_1430918431488_0001/) I would have to add an entry to the /etc/hosts file as below
127.0.0.1 localhost sandbox.hortonworks.com
I tried adding this and restarted the "network" service, but the url doesn't work. I get an error
This webpage is not available
The complete file contents of /etc/hosts file are as below
127.0.0.1 localhost.localdomain localhost 10.0.2.15 sandbox.hortonworks.com sandbox ambari.hortonworks.com 127.0.0.1 localhost sandbox.hortonworks.com
What changes do I need to make to get the url working?