Manual Rolling Upgrade Procedure

About this task

Complete the following upgrade steps for each node in each upgrade group.

Procedure

  1. Download the archive file from http://package.mapr.com/releases/.
  2. 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>
  3. 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
  4. Get the default MapReduce mode for the cluster.
    maprcli cluster mapreduce get
  5. 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>
  6. Set the node to maintenance mode.
    sudo maprcli node maintenance -nodes <hostname> -timeoutminutes 30
  7. Notify the CLDB that the node is going to be upgraded.
    sudo maprcli notifyupgrade start -node <hostname>
  8. Stop Warden.
    sudo service mapr-warden stop
  9. If ZooKeeper is installed on the node, stop ZooKeeper.
    service mapr-zookeeper stop
  10. Remove any patches installed on the node.
    • RHEL/CentOS or SUSE: sudo rpm -e mapr-patch
    • Ubuntu: sudo apt-get -y remove mapr-patch
  11. 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>
  12. Configure the node.
    sudo /opt/mapr/server/configure.sh -R
  13. If ZooKeeper is installed on the node, start ZooKeeper.
    service mapr-zookeeper start
  14. Start Warden.
    sudo service mapr-warden start
  15. Check that the CLDB is running.
    maprcli node list.If output is displayed, the CLDB is running. If not, start CLDB.
  16. 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>
  17. 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.

  18. If the node is blacklisted, remove it from the blacklist:
    hadoop job -unblacklist-tracker <hostname>
  19. Configure the new version.