Manual Rolling Upgrade Procedure
Describes how to upgrade each node manually to the latest version of MapR packages.
Complete the following upgrade steps for each node in each upgrade group.
-
Download the archive file from https://package.ezmeral.hpe.com/releases/.
-
Extract the archive file. When you upgrade each package, be sure to specify the full path to the files in this local directory.
tar -xzvf <archive file>
-
Run commands to determine if a patch is installed. If the commands display no output, no patch is installed.
- RHEL/CentOS and SLES:
rpm -qa mapr-patch
- Ubuntu:
dpkg -l | grep mapr-patch
- RHEL/CentOS and SLES:
-
Get the default MapReduce mode for the cluster.
maprcli cluster mapreduce get
-
Stop CLDB if it is running on the node, before putting that node in maintenance mode. Else, the maintenance mode operation is not permitted
maprcli node services -name cldb -action stop -nodes mapr-<node>
-
Set the node to maintenance mode.
sudo maprcli node maintenance -nodes <hostname> -timeoutminutes 30
-
Notify the CLDB that the node is going to be upgraded.
sudo maprcli notifyupgrade start -node <hostname>
-
Stop Warden.
sudo service mapr-warden stop
-
If ZooKeeper is installed on the node, stop ZooKeeper.
service mapr-zookeeper stop
-
Remove any patches installed on the node.
- RHEL/CentOS or SLES:
sudo rpm -e mapr-patch
- Ubuntu:
sudo apt-get -y remove mapr-patch
- RHEL/CentOS or SLES:
-
Upgrade each MapR package on the node based on the defined package upgrade order by running this command for each package:
- RHEL/CentOS or SLES:
sudo rpm --quiet --force --nosignature -U </FullPathToPackage/PackageName.rpm>
- Ubuntu:
sudo dpkg --force-all -i </FullPathToPackage/PackageName.deb>
NOTE During the upgrade process on Ubuntu, the system displays dpkg warnings about overwriting. You can ignore these warnings.
- RHEL/CentOS or SLES:
-
Configure the node.
sudo /opt/mapr/server/configure.sh -R
-
If ZooKeeper is installed on the node, start ZooKeeper.
service mapr-zookeeper start
-
Start Warden.
sudo service mapr-warden start
-
Check that the CLDB is running. If output is displayed, the CLDB is running. If not, start CLDB.
maprcli node list
-
Unset maintenance mode on the node, notify the CLDB about the upgraded version, and about the finished status of the upgrade process.
sudo maprcli node maintenance -nodes <hostname> -timeoutminutes 0 sudo maprcli config save -values {mapr.targetversion:"`cat /opt/mapr/MapRBuildVersion`"} sudo maprcli notifyupgrade finish -node <hostname>
-
Wait for the containers to synchronize, run the following command, and check that there is no output.
/opt/mapr/server/mrconfig info containers resync local
No output signifies that the containers are synchronized.