Upgrade Managed Components Using a Specific Set of Packages

- Download and save the repo file.
- RHEL-compatible systems
Click the entry in the table below that matches your RHEL or CentOS system, go to the repo file for your system, and save it in the /etc/yum.repos.d/ directory.
OS Version
Link
RHEL/CentOS/Oracle 5
RHEL/CentOS 6 (64-bit)
- SLES systems
- 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
- Run the following command:
- Ubuntu and Debian systems
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.
- For Ubuntu systems:
- RHEL-compatible systems
- Edit the repo file to point to the release you want to install or upgrade to.
- RHEL-compatible systems
Open the repo file you 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 RHEL 6, it looks like this when you open it:
[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
For example, if you want to install CDH 5.1.0, 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.1.0/
In this example, the resulting file looks like this:
[cloudera-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.1.0/ gpgkey = https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
- SLES systems
Open the repo file that you just added 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:
[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
For example, if you want to install CDH 5.1.0, 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.1.0/
In this example, the resulting file looks like this:
[cloudera-cdh5] name=Cloudera's Distribution for Hadoop, Version 5 baseurl=https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/5.1.0/ gpgkey = https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera gpgcheck = 1
- Ubuntu and Debian systems
Replace -cdh5 near the end of each line (before contrib) with the CDH release you need to install. The following examples use CDH 5.1.0:
64-bit Ubuntu Precise
deb [arch=amd64] https://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh precise-cdh5.1.0 contrib deb-src https://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh precise-cdh5.1.0 contrib
Debian Wheezy
deb https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh wheezy-cdh5.1.0 contrib deb-src https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh wheezy-cdh5.1.0 contrib
- RHEL-compatible systems
- Optionally add a repository key:
- RHEL-compatible
- Red Hat/CentOS/Oracle 5
$ sudo rpm --import https://archive.cloudera.com/cdh5/redhat/5/x86_64/cdh/RPM-GPG-KEY-cloudera
- Red Hat/CentOS/Oracle 6
$ sudo rpm --import https://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera
- Red Hat/CentOS/Oracle 5
- SLES
$ sudo rpm --import https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/RPM-GPG-KEY-cloudera
- Ubuntu and Debian
- Ubuntu Precise
$ curl -s https://archive.cloudera.com/cdh5/ubuntu/precise/amd64/cdh/archive.key | sudo apt-key add -
- Debian Wheezy
$ curl -s https://archive.cloudera.com/cdh5/debian/wheezy/amd64/cdh/archive.key | sudo apt-key add -
- Ubuntu Precise
- RHEL-compatible
- Install the CDH packages:
- RHEL-compatible
$ sudo yum clean all $ sudo yum install avro-tools crunch flume-ng hadoop-hdfs-fuse hadoop-httpfs hadoop-kms hbase hbase-solr hive-hbase hive-webhcat hue-beeswax hue-hbase hue-impala hue-pig hue-plugins hue-rdbms hue-search hue-spark hue-sqoop hue-zookeeper impala impala-shell kite llama mahout oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 whirr zookeeper
- SLES
$ sudo zypper clean --all $ sudo zypper install avro-tools crunch flume-ng hadoop-hdfs-fuse hadoop-httpfs hadoop-kms hbase hbase-solr hive-hbase hive-webhcat hue-beeswax hue-hbase hue-impala hue-pig hue-plugins hue-rdbms hue-search hue-spark hue-sqoop hue-zookeeper impala impala-shell kite llama mahout oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 whirr zookeeper
- Ubuntu and Debian
$ sudo apt-get update $ sudo apt-get install avro-tools crunch flume-ng hadoop-hdfs-fuse hadoop-httpfs hadoop-kms hbase hbase-solr hive-hbase hive-webhcat hue-beeswax hue-hbase hue-impala hue-pig hue-plugins hue-rdbms hue-search hue-spark hue-sqoop hue-zookeeper impala impala-shell kite llama mahout oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 whirr zookeeper
Note: Installing these packages also installs all the other CDH packages required for a full CDH 5 installation.
- RHEL-compatible
- Return to Step 7: Upgrade Managed Components to complete the upgrade.
<< Upgrading to CDH 5.x Using Packages | ©2016 Cloudera, Inc. All rights reserved | Performing Upgrade Wizard Actions Manually >> |
Terms and Conditions Privacy Policy |