Introduction
Zookeeper provides cluster management for Hadoop.
In this post, I’m going to install Zookeeper in Pseudo mode, so please use these instructions for setting up a developer’s workstation, not for a production cluster.
Installation
The zookeeper package should already be installed, but we’ll double check.
sudo apt-get install zookeeper
Next, we’ll install the Zookeeper Server.
sudo apt-get install zookeeper-server
The following files are now installed:
/etc/zookeeper/conf/zoo.cfg: Zookeeper configuration file
sudo service zookeeper-server stop
sudo service zookeeper-server start
If you have installed Zookeeper before installing HBase, you will see the following error message:
Using config: /etc/zookeeper/conf/zoo.cfg
ZooKeeper data directory is missing at /var/lib/zookeeper fix the path or run initialize
invoke-rc.d: initscript zookeeper-server, action "start" failed.
You need to initialize Zookeeper when it’s installed before HBase.
sudo service zookeeper-server init
Now you can start Zookeeper.
sudo service zookeeper-server start
Leave a Reply