Using Hortonworks-Sanbox HDP 3.0.
Changed ambari-server port to 9999 using shell, but unable to access it using http://localhost:9999.
Can anyone help to resolve this issue.
What do you mean that changed using shell exactly?
Could you run a lsof -i:9999 to see if something is listening on this port?
Could you check in this file which port is set? /etc/ambari-server/conf/ambari.properties