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

Configure Ambari server to use a proxy server

You can configure Ambari Server to access the Internet using a proxy server.

  1. On the Ambari Server host, stop Ambari Server.
    ambari-server stop
  2. Add proxy settings to the following script: /var/lib/ambari-server/ambari-env.sh.
    -Dhttp.proxyHost=[YOUR_PROXY_HOST] -Dhttp.proxyPort=[YOUR_PROXY_PORT]
  3. Optionally, to prevent some host names from accessing the proxy server, define the list of excluded hosts.
    -Dhttp.nonProxyHosts=[pipe|separated|list|of|hosts]
  4. If your proxy server requires authentication, add the username and password.
    -Dhttp.proxyUser=[USER_NAME] -Dhttp.proxyPassword=[PASSWORD]
  5. Restart the Ambari Server to pick up this change.
    ambari-server restart