Upgrading ZooKeeper from an Earlier CDH 5 Release
Cloudera recommends that you use a rolling upgrade process to upgrade ZooKeeper: that is, upgrade one server in the ZooKeeper ensemble at a time. This means bringing down each server in turn, upgrading the software, then restarting the server. The server will automatically rejoin the quorum, update its internal state with the current ZooKeeper leader, and begin serving client sessions.
This method allows you to upgrade ZooKeeper without any interruption in the service, and also lets you monitor the ensemble as the upgrade progresses, and roll back if necessary if you run into problems.
The instructions that follow assume that you are upgrading ZooKeeper as part of a CDH 5 upgrade, and have already performed the steps underUpgrading from an Earlier CDH 5 Release to the Latest Release.
Performing a ZooKeeper Rolling Upgrade
Follow these steps to perform a rolling upgrade.
Step 1: Stop the ZooKeeper Server on the First Node
To stop the ZooKeeper server:
$ sudo service zookeeper-server stop
Step 2: Install the ZooKeeper Base Package on the First Node
Step 3: Install the ZooKeeper Server Package on the First Node
See Installing the ZooKeeper Server Package.
- If you install a newer version of a package that is already on the system, configuration files that you have modified will remain intact.
- If you uninstall a package, the package manager renames any configuration files you have modified from <file> to <file>.rpmsave. If you then re-install the package (probably to install a new version) the package manager creates a new <file> with applicable defaults. You are responsible for applying any changes captured in the original configuration file to the new configuration file. In the case of Ubuntu and Debian upgrades, you will be prompted if you have made changes to a file for which there is a new version. For details, see Automatic handling of configuration files by dpkg.
Step 4: Restart the Server
See Installing the ZooKeeper Server Package for instructions on starting the server.
The upgrade is now complete on this server and you can proceed to the next.
Step 5: Upgrade the Remaining Nodes
Repeat Steps 1-4 above on each of the remaining nodes.
The ZooKeeper upgrade is now complete.
<< ZooKeeper Installation | ©2016 Cloudera, Inc. All rights reserved | Installing the ZooKeeper Packages >> |
Terms and Conditions Privacy Policy |