Cloudera Enterprise 6.0 Beta | Other versions

Upgrade Managed Components Using a Specific Set of Packages

  Important: The procedures in this topic are part of the procedure Upgrading to CDH 6.x Using Packages. They describe how to configure Cloudera Manager to upgrade managed CDH components using a specific set of packages instead of using the latest packages available. After completing the steps in this topic, return to Step 7: Upgrade Managed Components to complete the upgrade.
  1. 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/Oracle 5 link

      RHEL/CentOS 6 (64-bit)

      RHEL/CentOS 6 link

    • SLES systems
      1. Run the following command:
        $ sudo zypper addrepo -f https://archive.cloudera.com/cdh5/sles/11/x86_64/cdh/cloudera-cdh5.repo
      2. Update your system package index by running:
        $ sudo zypper refresh 
    • 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.

  2. 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
  3. 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
    • 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 -
  4. 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 oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 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 oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 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 oozie parquet pig pig-udf-datafu search sentry solr solr-mapreduce spark-python sqoop sqoop2 zookeeper
      Note: Installing these packages also installs all the other CDH packages required for a full CDH 5 installation.
  5. Return to Step 7: Upgrade Managed Components to complete the upgrade.
Page generated March 7, 2018.