MapR 5.0 Documentation : Upgrade Sqoop1

If you installed Sqoop1 with the MapR Installer, use the latest version of the MapR Installer to perform the upgrade. 

This page contains the following topics describing how to upgrade Sqoop1 in the MapR distribution for Apache Hadoop:

Before you upgrade, make sure that the version of the MapR core software on your cluster supports the version of Sqoop you want to upgrade to. See the Sqoop Release Notes and the Interoperability Matrix

Update Repositories or Download Packages

MapR's rpm and deb repositories always contain the Sqoop1 version recommended for the latest release of the MapR core.  You can connect to an internet repository or prepare a local repository with any version of Sqoop1 you need. For more details on setting up repositories, see Preparing Packages and Repositories. You can also manually download packages to install. 

The following ecosystem repositories are available:

MapR 5.x Ecosystem Repository (for repository install)
All Ecosystem Packages (for manual install)

To update the repository cache

If you plan to install from a repository, update the repository cache on each node where Sqoop1 is installed.


On RedHat or CentOS...
yum clean all
On Ubuntu...
apt-get update


Migrating Configuration Files

If you have changed configuration properties on your current installation of Sqoop, you probably want to apply those changes to the updated version. Configuration properties are located in /opt/mapr/sqoop/sqoop-<version>/conf/.

In general, you can migrate your configuration changes with the following procedure:

  1. Before upgrade, save configuration files on all nodes where Sqoop is installed.
  2. Upgrade Sqoop software.
  3. Migrate custom configuration settings into the new default files in the conf directory.

Upgrading the Software

Use one of the following methods to upgrade the Sqoop component:

To upgrade with a package manager

After configuring repositories so that the version you want to install is available, you can use a package manager to install from the repository.

On RedHat and CentOS
yum upgrade mapr-sqoop
On Ubuntu
apt-get install mapr-sqoop


To manually remove a prior version and install the latest version in the repository

Copy custom configuration files in /opt/mapr/sqoop/sqoop-<version>/conf to a safe location before proceeding.

On RedHat and CentOS
yum remove mapr-sqoop 
yum install mapr-sqoop
On Ubuntu
apt-get remove mapr-sqoop 
apt-get install mapr-sqoop

To keep a prior version and install a newer version

Sqoop installs into separate directories named after the version, such as /opt/mapr/sqoop/sqoop-<version>/, so the files for multiple versions can co-exist.

To keep the prior version when installing a new version, you must manually install the package file for the new version.

For example, to install version 1.4.5 while keeping any previously installed version, perform the steps below.

On RedHat and CentOS
  1. Download the RPM package file for mapr-sqoop version 1.4.5 from
  2. Install the package with rpm.

    rpm -i --force mapr-sqoop-1.4.5.<build>.noarch.rpm
On Ubuntu

This process is not supported on Ubuntu, because apt-get and dpkg cannot manage multiple versions of a package with the same name.