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

Configure yum to use Internet proxy settings

You can set up a yum configuration file to use your proxy server.

Setting up yum to use a proxy server depends a lot on your environment and operating system. These instructions provide some guidance but we strongly recommend you consult with your system administrators and operating system documentation for assistance and specific instructions.

It is important to highlight that defining a proxy server, username and password in /etc/yum.conf means all users of yum connect to the proxy server with those details.

  1. On each host in the cluster, specify the proxy settings in /etc/yum.conf by adding an entry such as:
    proxy=http://[YOUR_PROXY_HOST]:[YOUR_PROXY_PORT]
  2. If your proxy server requires authentication, add the username and password, as follows:
    enableProxyAuth=1
    proxy_username=[USER_NAME]
    proxy_password=[PASSWORD]
  3. Save the yum configuration file.