Configure and Start Apache ZooKeeper
Before you can upgrade Apache ZooKeeper, you must have first upgraded your HDP components to the latest version (in this case, 2.4.0). This section assumes that you have already upgraded your components for HDP 2.4.0. If you have not already completed these steps, return to Getting Ready to Upgrade and Upgrade 2.2 Components for instructions on how to upgrade your HDP components to 2.4.0.
Tip | |
---|---|
If you are running a highly available HDFS cluster, configure and restart ZooKeeper before you upgrade HDFS. This best practice lets the upgraded ZKFC work with your primary NameNode and your Standby NameNode. |
Replace your configuration after upgrading on all the ZooKeeper nodes. Replace the ZooKeeper template configuration in
/etc/zookeeper/conf
.Start ZooKeeper.
On all ZooKeeper server host machines, run the following command to start ZooKeeper and the ZKFC:
su - zookeeper -c "/usr/hdp/current/zookeeper-server/bin/zookeeper-server start"