Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Expert Contributor

It is often the case that we need to install Hortonworks in environments with strict requirements. One such requirement may be that all http traffic must go through a dedicated proxy server.

When installing Hortoworks HDP using Ambari, you can find instructions for configuring Ambari to use the proxy on the docs.hortonworks.com website. For example, here is the page for configuring Ambari 2.2

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/ch_setting...

Notice that the instructions mention that you must also configure yum to use the proxy. It’s important to note that the above instructions for yum will configure all repositories to use the proxy, and you may not want this behavior.

So while it is great to set the proxy at yum’s global level, you should review any existing repository configurations to determine if they should not use the proxy. If any repositories should not use the proxy, then you can update their configurations with the following option: proxy=_none_

Additionally, while preparing for an HDP installation, you will also use the tools wget and curl. I suggest that you confirm that these tools are also setup to use the proxy. If not, it’s as easy as setting the proxy option in their configuration files.

Wget has a global file /usr/local/etc/wgetrc.

Wget Options:

use_proxy = on

http_proxy = http://proxyhost:port

Curl does not have a global file, so you can create .curlrc in your home directory.

proxy <[protocol://][user:password@]proxyhost[:port]

Once you have Ambari, yum, wget, and curl configured to use your proxy, you’ll be ready to start the installation.

5,034 Views
Comments
Not applicable
Hi I am using microleaves  and i want to set hortonworks behing proxies how it works? Please give me colplete information with steps.
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎07-26-2016 12:17 AM
Updated by:
 
Contributors
Top Kudoed Authors