Book Image

Learning HBase

By : Shashwat Shriparv
Book Image

Learning HBase

By: Shashwat Shriparv

Overview of this book

Table of Contents (18 chapters)
Learning HBase
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and configuring ZooKeeper


The following is the step-by-step process to download, install, and configure ZooKeeper:

  1. The download link for ZooKeeper is http://apache.mirrors.lucidnetworks.net/zookeeper/.

    So, let's download the latest release of ZooKeeper using the following command:

    wget http://apache.mirrors.lucidnetworks.net/zookeeper/stable/zookeeper-3.4.6.tar.gz
    
  2. Extract it as follows:

    tar –xvzfzookeeper-3.4.6.tar.gz
    
  3. Rename this file for an easy naming convention:

    mv zookeeper-3.4.6.tar.gz zookeeper
    
  4. Move it to a desired location:

    mv zookeeper ~/hbinaries/
    cd ~/hbinaries/zookeeper/conf
    vim zoo.cfg
    
  5. Now, add the following lines:

    dataDir=/mnt/disk1/zookeeperData#Assuming the layout of the reader's filesystem>
    tickTime=2000
    clientPort=2181
    

    Here, dataDir is the location where the memory snapshot database of ZooKeeper will be stored, tickTime is the heartbeat interval for session timeout in milliseconds, and clientPort is the port where the client connection will be accepted and ZooKeeper...