If you installed Sqoop2 with the MapR Installer, use the latest version of the MapR Installer to perform the upgrade.
To upgrade to the latest version of Sqoop2, execute the following commands as
root or using
Update the list of available packages.On Ubuntu...On RedHat and CentOS...
Stop each Sqoop2 server node.
As a precaution, back up the Sqoop2 repository.
For example, you can copy the repository to the /tmp directory:
To retain custom configurations, backup the sqoop.properties file ( /opt/mapr/sqoop/sqoop-<version>/server/conf/sqoop.properties) .
For example, you can copy the file to a /tmp directory:
On each Sqoop2 server node, upgrade the mapr-sqoop2-server packages.On Ubuntu...On RedHat / CentOS...
Perform one of the following options steps:
Manually update the sqoop.properties file with new options.
On each Sqoop2 server node, set the following property in sqoop.properties file (
Use the upgrade utility to update the sqoop.properties file.
On each Sqoop2 server node, run the upgrade utility.
When the upgrade utiity completes successfully, the following message displays:
Tool class org.apache.sqoop.tools.tool.UpgradeTool has finished correctly.
- Optionally, reconfigure any custom configurations from the sqoop.properties file associated with the sqoop version that you upgraded from.
Start Sqoop2 server nodes.
On each Sqoop2 client node, install
mapr-sqoop2-client.On Ubuntu...On RedHat / CentOS...