Step 3: Apply the Patch to CLDB Nodes
When applying a patch manually, apply the patch to CLDB secondary nodes prior to applying the patch on the primary CLDB node. After you apply a patch to a CLDB node, you must verify that container 1 is fully replicated before proceeding to apply the patch to the next CLDB node.
About this task
Complete the following steps on each CLDB secondary node and then on the CLDB primary node:
Procedure
-
Stop the Warden and ZooKeeper (if installed) services:
-
If there is already a patch installed on the cluster, run one of the following
commands to uninstall it:
- On CentOS/RedHat:
sudo rpm -e mapr-patch
- On SLES:
sudo zypper remove mapr-patch
- On Ubuntu:
sudo apt-get -y remove mapr-patch
- On CentOS/RedHat:
-
Install the patch using one of the following commands:
- On CentOS/RedHat:
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
- On CentOS/RedHat:
-
Start the Warden and ZooKeeper (if installed) services:
-
To verify that the patch was installed successfully, run one of the following
commands:
- On CentOS/RedHat or SLES:
sudo rpm -ql mapr-patch-<new_patch_number>
- On Ubuntu:
sudo dpkg -l | grep mapr-patch-<new_patch_number>
- On CentOS/RedHat or SLES:
-
Verify that the CLDB node that you patched is running and that container 1 on
that node is fully replicated.
Run
maprcli dump containerinfo -ids 1 -json
.In the output, the CLDB node that you just patched should be listed under ActiveServers, and should report a VALID state for container 1.
For example:... "data":[ { "ContainerId":1, "Epoch":3, "Master":"<masterCLDB_IP>:5660--3-VALID", "ActiveServers":{ "IP:Port":[ "<masterCLDB_IP>:5660--3-VALID", "<slaveCLDB_IP>:5660--3-VALID", "<slaveCLDB_IP>:5660--3-VALID" ] }, "InactiveServers":{ }, "UnusedServers":{ }, ...
NOTEThe RESYNC state will display when container 1 is not fully replicated on that node. You must wait until the CLDB node that you just patched has a VALID state for container 1.For more information, see dump containerinfo