Administering Ambari
Also available as:
PDF
loading table of contents...

Change the default Ambari server-agent port

To change the deafault port number, 8187, that Ambari Server uses to access Ambari Agents, edit the Ambari properties file.

By default, Ambari Server uses port 8187 to communicate with Ambari Agents. 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.
  1. On the Ambari Server host, open /etc/ambari-server/conf/ambari.properties with a text editor.
  2. Add the following properties and set them to your desired port values:
    SRVR_TWO_WAY_SSL_PORT_PROPERTY = "security.server.two_way_ssl.port" SRVR_TWO_WAY_SSL_PORT = "8441" SRVR_ONE_WAY_SSL_PORT_PROPERTY = "security.server.one_way_ssl.port" SRVR_ONE_WAY_SSL_PORT = "8440"
  3. On every Ambari Agent host, open /etc/ambari-agent/conf/ambari-agent.ini with a text editor.
  4. Add the following properties and set them to your desired port values:
    url_port=8440 secured_url_port=8441
  5. Start or re-start the Ambari Server.
    ambari-server start
    http://[YOUR_AMBARI_SERVER_HOST]:[PORT_NUMBER]
Ambari Server now accesses Ambari Agents via the newly configured port.