Chapter 7. Setting up an Internet Proxy server for Ambari

If you plan to use the public repositories for installing the Stack, Ambari Server must have Internet access to confirm access to the repositories and validate the repositories. If your machine requires use of a proxy server for Internet access, you must configure Ambari Server to use the proxy server.

  1. On the Ambari Server host, add proxy settings to the following script: /var/lib/ambari-server/

     -Dhttp.proxyHost={yourProxyHost} -Dhttp.proxyPort={yourProxyPort}
  2. Optionally, to prevent some host names from accessing the proxy server, define the list of excluded hosts, as follows:

  3. If your proxy server requires authentication, add the user name and password, as follows:

     -Dhttp.proxyUser={username} -Dhttp.proxyPassword={password}
  4. Restart the Ambari Server to pick up this change.


If you plan to use local repositories, see Optional: Configure Ambari for Local Repositories. Configuring Ambari to use a proxy server and have Internet access is not required. The Ambari Server must have access to your local repositories.

loading table of contents...