If your cluster does not have access to the Internet, or you are creating a large cluster and you want to conserve bandwidth, you need to provide access to the bits using an alternative method.
Set up the local mirror repositories as needed for HDP and HDP Utils.
For more information on your options, see Deploying HDP In Production Data Centers with Firewalls.
From the Ambari Server host, fetch the Ambari repository file or RPM package as described in Set Up the Bits. You need a connection to the Internet for this step.
If you do not have a connection to the Internet for this machine, you should follow the instructions in Deploying HDP In Production Data Centers with Firewalls and be sure to perform the optional steps for setting up the Ambari local repository.
Be sure to remember the local mirror repository Base URLs for each operating system from the Deploying HDP In Production Data Centers with Firewalls steps. You will use these Base URLs during the cluster install.
For example, if your system includes hosts running CentOS 6, to point to the HDP 2.0.6 repositories, your local repository Base URL would look something like this:
http://{your.hosted.local.repository}/HDP-2.0.6/repos/centos6
Important The appropriate relative path depends on how you have setup your local repositories. If you have mixed operating systems in your cluster (for example, CentOS 6 and RHEL 6), you must configure the repositories for both OSes - centos6 and redhat6. If you do not, some hosts in your cluster will not be able to retrieve the software packages for their operating system.
Configure which JDK to use and how the JDK will be downloaded and installed.
If you have not already installed the JDK on all hosts, and plan to use Oracle JDK 1.6,
download jdk-6u31-linux-x64.bin to
/var/lib/ambari-server/resources.
If you plan to use a JDK other than Oracle JDK 1.6, you must install the JDK on each host in your cluster and use the -j flag when running
ambari-server setup
. See JDK Requirements for more information on supported JDKs.If you have already installed the JDK on all your hosts, you must use the -j flag when running
ambari-server setup
Note See Setup Options for more information on the -j flag.