Upgrading HDP Manually
Also available as:
PDF
loading table of contents...

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 1.3 Components for instructions on how to upgrade your HDP components to 2.4.0.

[Tip]Tip

If you are running a highly available cluster, upgrade ZooKeeper before you upgrade HDFS. This best practice lets the upgraded ZKFC work with your primary NameNode and your Standby NameNode.

RHEL/CentOS/Oracle Linux

  1. Replace your configuration after upgrading ZooKeeper. Replace the ZooKeeper template configuration in /etc/zookeeper/conf.

  2. Start ZooKeeper.

    On all the ZooKeeper server host machines, run the following command to start ZooKeeper and the ZKFC:

    su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start"

    /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start zkfc

SLES

  1. Replace your configuration after upgrading. Replace the ZooKeeper template configuration in /etc/zookeeper/conf.

  2. Start ZooKeeper.

    On all the ZooKeeper server host machines, run the following command to start ZooKeeper and the ZKFC:

    su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start"

    /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start zkfc

Ubuntu/Debian

HDP support for Debian 6 is deprecated with HDP 2.4.0. Future versions of HDP will no longer be supported on Debian 6.

  1. Replace your configuration after upgrading. Replace the ZooKeeper template configuration in /etc/zookeeper/conf.

  2. Start ZooKeeper.

    On all the ZooKeeper server host machines, run the following command to start ZooKeeper and the ZKFC:

    su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start"

    /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh start zkfc