Upgrading Sqoop 2 from CDH 4 to CDH 5

To upgrade Sqoop 2 from CDH 4 to CDH 5, proceed as follows.

Step 1: Remove the CDH 4 version of Sqoop 2

To remove Sqoop 2 on a Red Hat-compatible system:

$ sudo yum remove sqoop2-server sqoop2-client

To remove Sqoop 2 on an Ubuntu or other Debian system:

$ sudo apt-get remove sqoop2-server sqoop2-client

To remove Sqoop 2 on a SLES system:

$ sudo zypper remove sqoop2-server sqoop2-client

Step 2: Install the new version of Sqoop 2

  1. Install the new version of Sqoop 2 following directions under Installing Sqoop 2.
  2. If you have been running MRv1 on CDH 4 and will continue to run it on CDH 5:
    1. Update /etc/defaults/sqoop2-server to point to MRv1:
      mv /etc/defaults/sqoop2-server.rpmnew /etc/defaults/sqoop2-server
    2. Update alternatives:
      alternatives --set sqoop2-tomcat-conf /etc/sqoop2/tomcat-conf.mr1
  3. Run the upgrade tool:
    sqoop2-tool upgrade
    This upgrades the repository database to the latest version.

The upgrade is now complete.