Manual Rolling Upgrade Procedure
About this task
Complete the following upgrade steps for each node in each upgrade group.
Procedure
- Download the archive file from http://package.mapr.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 SUSE:
rpm -qa mapr-patch
- Ubuntu:
dpkg l | grep mapr-patch
- RHEL/CentOS and SUSE:
-
Get the default MapReduce mode for the cluster.
maprcli cluster mapreduce get
-
If the node runs TaskTracker and the MapReduce cluster setting
is classic, blacklist the node.As MapR administrator, run this command:
hadoop job -blacklist-tracker <hostname>
-
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 SUSE:
sudo rpm -e mapr-patch
- Ubuntu:
sudo apt-get -y remove mapr-patch
- RHEL/CentOS or SUSE:
-
Upgrade each MapR package on the node based on the defined package upgrade order by running this command for each package:
- RHEL/CentOS or SUSE:
sudo rpm --quiet --force --nosignature -U </FullPathToPackage/PackageName.rpm>
- Ubuntu:
sudo dpkg --force-all -i </FullPathToPackage/PackageName.rpm>
- RHEL/CentOS or SUSE:
-
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.
maprcli node list.
If output is displayed, the CLDB is running. If not, start CLDB. -
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.
-
If the node is blacklisted, remove it from the blacklist:hadoop job -unblacklist-tracker <hostname>
- Configure the new version.