Step 2: Apply the Patch to Data Nodes

When applying a patch manually, apply the patch to nodes dedicated to storing and processing data prior to applying the patch to nodes that run the CLDB. This includes nodes that run the Fileserver for storage and processing components such as the NodeManager and the HBase client.

About this task

Apply the patch either to one node at a time or to batches of nodes. If you apply the patch to all nodes in parallel, the cluster will go down, and data will be unavailable temporarily. For clusters with more than 100 data nodes, it is a best practice to apply the patch in batches. Wait a few minutes before proceeding to the next batch of nodes.

On each data node:

Procedure

  1. Stop the Warden and ZooKeeper (if installed) services:
    1. To stop Warden, run the following command:
      sudo service mapr-warden stop
    2. If ZooKeeper is installed on the node, run this command:
      sudo service mapr-zookeeper stop
  2. If a patch is already installed on the cluster, run one of the following commands to uninstall it:
    • On RHEL: sudo rpm -e mapr-patch
    • On SLES: sudo zypper remove mapr-patch
    • On Ubuntu: sudo apt-get -y remove mapr-patch
  3. Install the patch using one of the following commands:
    • On RHEL: sudo rpm -ivh mapr-patch-<new_patch_number>.rpm
    • On SLES: sudo zypper install mapr-patch-<new_patch_number>.rpm
    • On Ubuntu: sudo dpkg -i mapr-patch-<new_patch_number>.deb
  4. Start the Warden and ZooKeeper (if installed) services:
    1. If ZooKeeper is installed on the node, run this command to start ZooKeeper:
      sudo service mapr-zookeeper start
    2. To start Warden, run this command:
      sudo service mapr-warden start
  5. To verify that the patch was installed successfully, run one of the following commands:
    • On RHEL or SLES: sudo rpm -ql mapr-patch-<new_patch_number>
    • On Ubuntu: sudo dpkg -l | grep mapr-patch-<new_patch_number>