To change the deafault
port number, 8080, that Ambari Server uses to access Ambari Web, edit the Ambari properties
file.
By default, Ambari Server uses port 8080 to access Ambari
Web and the REST API. To change the port number, you must edit the Ambari properties file.
Ambari Server should not be running when you change port
numbers. Edit ambari.properties before you start Ambari Server the
first time or stop Ambari Server before editing properties.
- On the Ambari Server host, open /etc/ambari-server/conf/ambari.properties
with a text editor.
-
Add the client API port property and set it to your desired port value:
client.api.port=[PORT_NUMBER]
-
Start or re-start the Ambari Server.
ambari-server start
http://[YOUR_AMBARI_SERVER_HOST]:[PORT_NUMBER]
Ambari Server now accesses Ambari Web via the newly configured
port.