ZooKeeper provides highly reliable centralized service for maintaining configuration information, naming, and providing distributed synchronization and group services. In this recipe, we will outline steps to install ZooKeeper.
Make sure Hadoop has been properly configured. Please refer to the previous recipes in this chapter about installation of Hadoop on a cluster.
Log in to the master node from the Hadoop administrator machine as hduser
with the following command:
ssh hduser@master
Download the ZooKeeper archive file with the following commands:
wget http://www.gtlib.gatech.edu/pub/apache/zookeeper/stable/zookeeper-3.4.5.tar.gz -P ~/repo
Use the following steps to configure ZooKeeper:
Log in to the master node with the following command:
ssh hduser@master
Copy the downloaded archive to
/usr/local
with the following command:sudo wget ftp://hadoop.admin/repo/zookeeper-3.4.5.tar.gz -P /usr/local
Decompress the file with the following command...