This is the documentation for CDH 4.7.0.
Documentation for other versions is available at Cloudera Documentation.

Downloading and Installing an Earlier Release

Choose your Linux version and proceed as follows to install an earlier release:

On Red Hat-compatible systems

Step 1. Download and Save the Yum Repo File

Click the entry in the table below that matches your Red Hat or CentOS system, navigate to the repo file for your system and save it in the /etc/yum.repos.d/ directory.

For OS Version

Click this Link

Red Hat/CentOS/Oracle 5

Red Hat/CentOS/Oracle 5 link

Red Hat/CentOS 6 (32-bit)

Red Hat/CentOS 6 link

Red Hat/CentOS 6 (64-bit)

Red Hat/CentOS 6 link

Step 2. Edit the Repo File

Open the repo file you have just saved and change the 4 at the end of the line that begins baseurl= to the version number you want.

For example, if you have saved the file for Red Hat 6, it will look like this when you open it for editing:

[cloudera-cdh4]
name=Cloudera's Distribution for Hadoop, Version 4
baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4/
gpgkey = http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera    
gpgcheck = 1

If you want to install CDH4.0.1, for example, change baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4/ to

baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.0.1/

In this example, the resulting file should look like this:

[cloudera-cdh4]
name=Cloudera's Distribution for Hadoop, Version 4
baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.0.1/
gpgkey = http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera    
gpgcheck = 1

Step 3: Proceed with the Installation

  1. Go to Documentation for CDH 4 Releases.
  2. Find the Installation Guide for your release; for example, for CDH4.0.0 or CDH4.0.1, scroll down to the link for the "CDH4.0.0 Installation Guide" and click on the link to the PDF.
  3. Follow the instructions on the "CDH4 Installation" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH4 with MRv1 or YARN, and is usually Step 1a.)

On SLES systems

Step 1. Add the Cloudera Repo

  1. Run the following command:
    $ sudo zypper addrepo -f http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/cloudera-cdh4.repo
  2. Update your system package index by running:
    $ sudo zypper refresh

Step 2. Edit the Repo File

Open the repo file that you have just added to your system and change the 4 at the end of the line that begins baseurl= to the version number you want.

The file should look like this when you open it for editing:

[cloudera-cdh4]
name=Cloudera's Distribution for Hadoop, Version 4
baseurl=http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/4/
gpgkey = http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera    
gpgcheck = 1

If you want to install CDH4.0.1, for example, change baseurl=http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/4/ to

baseurl= http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/4.0.1/.

In this example, the resulting file should look like this:

[cloudera-cdh4]
name=Cloudera's Distribution for Hadoop, Version 4
baseurl=http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/4.0.1/
gpgkey = http://archive.cloudera.com/cdh4/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera    
gpgcheck = 1

Step 3: Proceed with the Installation

  1. Go to Documentation for CDH 4 Releases.
  2. Find the Installation Guide for your release; for example, for CDH4.0.0 or CDH4.0.1, scroll down to the link for the "CDH4.0.0 Installation Guide" and click on the link to the PDF.
  3. Follow the instructions on the "CDH4 Installation" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH4 with MRv1 or YARN, and is usually Step 1a.)

On Ubuntu and Debian systems

Proceed as follows to add the Cloudera repo for your operating-system version and the Cloudera release you need.

Step 1: Create the Repo File

Create a new file /etc/apt/sources.list.d/cloudera.list with the following contents:

  • For Ubuntu systems:
    deb [arch=amd64] http://archive.cloudera.com/cdh4/ <OS-release-arch> <RELEASE>-cdh4 contrib deb-src http://archive.cloudera.com/cdh4/ <OS-release-arch> <RELEASE>-cdh4 contrib
  • For Debian systems:
    deb http://archive.cloudera.com/cdh4/ <OS-release-arch> <RELEASE>-cdh4 contrib deb-src http://archive.cloudera.com/cdh4/ <OS-release-arch> <RELEASE>-cdh4 contrib

where: <OS-release-arch> is debian/squeeze/amd64/cdh, ubuntu/lucid/amd64/cdh, or ubuntu/precise/amd64/cdh, and <RELEASE> is the name of your distribution, which you can find by running lsb_release -c.

Now replace -cdh4 near the end of each line (before contrib) with the CDH release you need to install. Here are some examples using CDH4.0.0:

For 64-bit Ubuntu Lucid:

deb [arch=amd64] http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh lucid-cdh4.0.0 contrib
deb-src http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh lucid-cdh4.0.0 contrib

For 64-bit Ubuntu Precise:

deb [arch=amd64] http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh lucid-cdh4.0.0 contrib
deb-src http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh precise-cdh4.0.0 contrib

For Debian Squeeze:

deb http://archive.cloudera.com/cdh4/debian/squeeze/amd64/cdh squeeze-cdh4.0.0 contrib
deb-src http://archive.cloudera.com/cdh4/debian/squeeze/amd64/cdh squeeze-cdh4.0.0 contrib

Step 2: Proceed with the Installation

  1. Go to Documentation for CDH 4 Releases.
  2. Find the Installation Guide for your release; for example, for CDH4.0.0 or CDH4.0.1, scroll down to the link for the "CDH4.0.0 Installation Guide" and click on the link to the PDF.
  3. Follow the instructions on the "CDH4 Installation" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH4 with MRv1 or YARN, and is usually Step 1a.)