Installing an Earlier CDH 5 Release
Follow these instructions to install a CDH 5 release that is earlier than the current CDH 5 release.
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 6 (64-bit) |
Step 2. Edit the repo file
Open the repo file you have just saved and change the 5 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-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/ gpgkey = https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
If you want to install CDH 5.0.1, for example, change baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/ to
baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.0.1/
In this example, the resulting file should look like this:
[cloudera-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.0.1/ gpgkey = https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
Step 3: Proceed with the installation
- Go to http://www.cloudera.com/content/cloudera/en/documentation.html.
- Use the Select Version scroller to find the release you want, for example, select CDH and 5.0.x
- Find the CDH Installation Guide for your release.
- Follow the instructions for Red Hat on the "Installing CDH 5" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH 5 with MRv1 or YARN, and is usually Step 2.)
On SLES systems
Step 1. Add the Cloudera repo
- Run the following command:
$ sudo zypper addrepo -f https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/cloudera-cdh5.repo
- 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 5 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-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5/ gpgkey = https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
If you want to install CDH5.0.1, for example, change baseurl=https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5/ to
baseurl= https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5.0.1/
In this example, the resulting file should look like this:
[cloudera-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5.0.1/ gpgkey = https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
Step 3: Proceed with the installation
- Go to http://www.cloudera.com/content/cloudera/en/documentation.html.
- Use the Select a Product Version scroller to find the release you want, for example CDH 5.0.x
- Find the CDH Installation Guide for your release.
- Follow the instructions for SLES on the "Installing CDH 5" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH 5 with MRv1 or YARN, and is usually Step 2.)
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] https://archive.cloudera.com/cdh5/ <OS-release-arch> <RELEASE>-cdh5 contrib deb-src https://archive.cloudera.com/cdh5/ <OS-release-arch> <RELEASE>-cdh5 contrib
- For Debian systems:
deb https://archive.cloudera.com/cdh5/ <OS-release-arch> <RELEASE>-cdh5 contrib deb-src https://archive.cloudera.com/cdh5/ <OS-release-arch> <RELEASE>-cdh5 contrib
where: <OS-release-arch> is debian/wheezy/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 -cdh5 near the end of each line (before contrib) with the CDH release you need to install. Here are some examples using CDH5.0.1:
For 64-bit Ubuntu Precise:
deb [arch=amd64] https://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh precise-cdh5.0.1 contrib deb-src https://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh precise-cdh5.0.1 contrib
For Debian Wheezy:
deb https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh wheezy-cdh5.0.1 contrib deb-src https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh wheezy-cdh5.0.1 contrib
Step 2: Proceed with the installation
- Go to http://www.cloudera.com/content/cloudera/en/documentation.html.
- Use the Select a Product Version scroller to find the release you want, for example CDH 5.0.x
- Find the CDH Installation Guide for your release.
- Follow the instructions for Ubuntu or Debian on the "Installing CDH 5" page, starting with the instructions for optionally adding a repository key. (This comes immediately before the steps for installing CDH5 with MRv1 or YARN, and is usually Step 2.)