Step 1: Configure a Repository

CDH is installed using package management tools such as yum for RHEL compatible systems, zypper for SLES, and apt-get for Ubuntu. These tools depend on access to repositories to install software. Cloudera maintains Internet-accessible repositories for CDH installation files. You can also create your own internal repository for hosts that do not have Internet access.

For more information on creating an internal repository for Cloudera Manager, Using an Internal Package Repository.

To use the Cloudera repository:

RHEL compatible

  1. Download the cloudera-cdh5.repo file for your OS version to the /etc/yum.repos.d/ directory on all cluster hosts. You can find the URL in the Repo File column in the CDH Download Information table for the CDH version you want to install.

    For example:

    sudo wget <repo_file_url> -P /etc/yum.repos.d/
  2. Import the repository signing GPG key:
    • RHEL 7 compatible:
      sudo rpm --import https://username:password@archive.cloudera.com/p/cdh5/redhat/7/x86_64/cdh/RPM-GPG-KEY-cloudera
    • RHEL 6 compatible:
      sudo rpm --import https://username:password@archive.cloudera.com/p/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
    • RHEL 5 compatible:
      sudo rpm --import https://username:password@archive.cloudera.com/p/cdh5/redhat/5/x86_64/cdh/RPM-GPG-KEY-cloudera
  3. Continue to Step 2: Install Java Development Kit.

SLES

  1. Update your system package index by running:
    sudo zypper refresh
  2. Add the repo using zypper addrepo on each cluster host. You can find the URL in the Repo File column in the CDH Download Information table for the CDH version you want to install.
    For example:
    sudo zypper addrepo -f https://username:password@archive.cloudera.com/p/cdh5/sles/12/x86_64/cdh/cloudera-cdh.repo
  3. Import the repository signing GPG key:
    sudo rpm --import https://username:password@archive.cloudera.com/p/cdh5/sles/12/x86_64/cdh/RPM-GPG-KEY-cloudera
  4. Continue to Step 2: Install Java Development Kit.

Ubuntu, Debian

  1. Download the cloudera.list file for your OS version to the /etc/apt/sources.list.d/ directory on each cluster host. You can find the URL in the Repo File column in the CDH Download Information table for the CDH version you want to install.
  2. Import the repository signing GPG key:
    wget https://username:password@archive.cloudera.com/p/cdh5/ubuntu/xenial/amd64/cdh/archive.key
    sudo apt-key add archive.key
  3. Update your system package index by running:
    sudo apt-get update
  4. Continue to Step 2: Install Java Development Kit.