Upgrading ZooKeeper from CDH 4 to CDH 5

To upgrade ZooKeeper from CDH 4 to CDH 5, uninstall the CDH 4 version (if you have not already done so) and then install the CDH 5 version. Do the following on each server.

CAUTION:
On Ubuntu systems, make sure you remove HBase before removing ZooKeeper; otherwise your HBase configuration will be deleted. This is because hadoop-hbase depends on hadoop-zookeeper, and so purging hadoop-zookeeper will purge hadoop-hbase.

Step 1: Remove ZooKeeper

  1. Stop the ZooKeeper server:
    $ sudo service zookeeper-server stop

    or

    $ sudo service zookeeper stop

    depending on the platform and release.

  2. Remove CDH 4 ZooKeeper

    To remove ZooKeeper on Red Hat-compatible systems:

    $ sudo yum remove zookeeper-server
    

    To remove ZooKeeper on Ubuntu and Debian systems:

    $ sudo apt-get remove zookeeper-server
    

    To remove ZooKeeper on SLES systems:

    $ sudo zypper remove zookeeper-server
    

Step 2: Install the ZooKeeper Base Package

Step 3: Install the ZooKeeper Server Package

See Installing the ZooKeeper Server Package.

Step 4: Restart the Server

See Installing the ZooKeeper Server Package for instructions on starting the server.