Rolling Back a Patch
Removing a previously installed patch is a manual process. You can revert to a previous version of the patch by first removing the current patch and then installing the previous version.
configure.sh -R
command and restart services after rolling back. Always test patch installs in a test
environment before applying patches to production environments. Rolling Back to a Previous Patch
If a newly installed patch for a given software version delivers unexpected behavior, you can remove the patch or install an older patch for the same Data Fabric software version. Use the following steps.
- Stop the Warden and ZooKeeper (if installed) services:
- To stop Warden, run the following
command:
sudo service mapr-warden stop
- If ZooKeeper is installed on the node, run this
command:
sudo service mapr-zookeeper stop
- To stop Warden, run the following
command:
- If a patch is already installed on the cluster, run one of the following commands to
uninstall it:
- On CentOS/RHEL:
sudo rpm -e mapr-patch
- On SLES:
sudo zypper remove mapr-patch
- On Ubuntu:
sudo apt-get -y remove mapr-patch
- On CentOS/RHEL:
- Install the desired older version of the patch using one of the following commands. To
view the available patch versions, see Obtaining the Latest Patch Version later on this page:
- On CentOS/RHEL:
sudo rpm -ivh mapr-patch-<older_patch_number>.rpm
- On SLES:
sudo zypper install mapr-patch-<older_patch_number>.rpm
- On Ubuntu:
sudo dpkg -i mapr-patch-<older_patch_number>.deb
- On CentOS/RHEL:
- Start the Warden and ZooKeeper (if installed) services:
- If ZooKeeper is installed on the node, run this command to start
ZooKeeper:
sudo service mapr-zookeeper start
- To start Warden, run this
command:
sudo service mapr-warden start
- If ZooKeeper is installed on the node, run this command to start
ZooKeeper:
Rolling Back When When There Is No Previous Patch
- Stop the Warden and ZooKeeper (if installed) services:
- To stop Warden, run the following
command:
sudo service mapr-warden stop
- If ZooKeeper is installed on the node, run this
command:
sudo service mapr-zookeeper stop
- To stop Warden, run the following
command:
- Uninstall the patch:
- On CentOS/RHEL:
sudo rpm -e mapr-patch
- On SLES:
sudo zypper remove mapr-patch
- On Ubuntu:
sudo apt-get -y remove mapr-patch
- On CentOS/RHEL:
- Run
configure.sh -R
to revert to the unpatched configuration. - Start the Warden and ZooKeeper (if installed) services:
- If ZooKeeper is installed on the node, run this command to start
ZooKeeper:
sudo service mapr-zookeeper start
- To start Warden, run this
command:
sudo service mapr-warden start
- If ZooKeeper is installed on the node, run this command to start
ZooKeeper:
Obtaining the Latest Patch Version
The latest patch version (for example, version n
) and the previous patch
version (version n-1
), are always available on sftp.mapr.com. To log
in, specify maprpatches
for the Login ID, and leave
the Password field blank.
Getting Help with Patches
For technical assistance in removing a patch and restoring the functionality that existed before the patch was installed, open a case with HPE Support Center.