Upgrade Sqoop2
About this task
root
or using sudo
: NOTE: If you installed Sqoop2 with the
MapR Installer, use the latest version of the MapR Installer
to perform the upgrade.
Procedure
-
Update the list of available packages.
- On Ubuntu
-
apt-get update
- On RedHat and CentOS
-
yum clean all
-
Stop each Sqoop2 server node.
maprcli node services -name sqoop2 -action stop -nodes <space delimited list of nodes>
-
As a precaution, back up the Sqoop2 repository. For example, you can copy the
repository to the
/tmp
directory:cp -a /opt/mapr/sqoop/repository /tmp/
-
To retain custom configurations, back up the
sqoop.properties
file (/opt/mapr/sqoop/sqoop-<version>/server/conf/sqoop.properties
). For example, you can copy the file to a/tmp
directory:cp /opt/mapr/sqoop/sqoop-<version>/server/conf/sqoop.properties /tmp/
-
On each Sqoop2 server node, upgrade the
mapr-sqoop2-server
packages.- On Ubuntu
-
apt-get install mapr-sqoop2-server
- On RedHat and CentOS
-
yum update mapr-sqoop2-server
-
Perform one of the following steps:
-
Optionally, reconfigure any custom configurations from the
sqoop.properties
file associated with the sqoop version that you upgraded from. -
Start Sqoop2 server nodes.
maprcli node services -name sqoop2 -action start -nodes <space delimited list of nodes>
-
On each Sqoop2 client node, install
mapr-sqoop2-client.
- On Ubuntu
apt-get install mapr-sqoop2-client
- On RedHat / CentOS
yum update mapr-sqoop2-client