Zookeeper Installation Guide

Environment Setup

  • 1.1 Install Java 1.6+ version
  • 1.2 Install latest Apache stable build
  • 1.3 Download Zookeeper stable version

Zookeeper Installation

Download the stable version of HBase. In our case it is HBase 0.94.16.

  • Execute following command to download HBase 0.94.16
  • Unzip the compressed hbase file by executing the following command:
    tar -xvzf zookeeper-3.4.5.tar.
  • Login as root and create a directory “zookeeper”, Change the ownership of this directory to the hadoop user “hduser” and group “hadoop”. This is done mainly for our convenience, to differentiate each framework, software and application with different users. Execute the following commands
    cd /usr/local
    mkdir zookeeper
    chown -R hduser:hadoop /usr/local/zookeeper
  • Copy the unzipped zookeeper binaries into /usr/local/zookeeper folder
    mv zookeeper-3.4.5 /usr/local/
  • To start zookeeper, you need a configuration file. Create a configuration file named, zoo.cfg file in the path /usr/local/zookeeper/conf. Eexcute the following commands
    cd /usr/local/zookeeper/zookeeper-3.4.5/conf
    vi zoo.cfg
  • Add the following entries to the file.
  • Start Zookeeper by executing the following command.
    ./ start
    JMX enabled by default
    Using config: /usr/local/zookeeper/zookeeper-3.4.5/bin/../conf/zoo.cfg
    Starting zookeeper ... STARTED
  • Zookeeper is now set up and is ready for further use. Zookeeper logs messages using.
  • The steps outlined here run Zookeeper in standalone mode. There is no replication, so if Zookeeper process fails, the service will go down.
  • Stop Zookeeper by executing the following command.
    ./ stop
    JMX enabled by default
    Using config: /usr/local/zookeeper/zookeeper-3.4.5/bin/../conf/zoo.cfg
    Stopping zookeeper ... ./ line 143: kill: (6411) - No such process




Sign Up for Updates

Your information will be protected.


Please fill in ALL fields with correct information. Your information will be protected.