On the Ambari Server host, add proxy settings to the following script:
/var/lib/ambari-server/ambari-env.sh.
-Dhttp.proxyHost=
<yourProxyHost>-Dhttp.proxyPort=
<yourProxyPort>Optionally, to prevent some host names from accessing the proxy server, define the list of excluded hosts, as follows:
-Dhttp.nonProxyHosts=
<pipe|separated|list|of|hosts>If your proxy server requires authentication, add the user name and password, as follows:
-Dhttp.proxyUser=
<username>-Dhttp.proxyPassword=
<password>Restart the Ambari Server to pick up this change.
If you plan to use local repositories, see Using a Local Repository. Configuring Ambari to use a proxy server and have Internet access is not required. The Ambari Server must have access to your local repositories.