

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A step-by-step guide on how to install and configure zookeeper on a linux system. It covers setting up the environment, downloading and unzipping the stable version of zookeeper, creating a configuration file, and starting and stopping the zookeeper server. This guide assumes a basic understanding of linux commands and the use of apache and java.
What you will learn
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!
1.1 Install Java 1.6+ version 1.2 Install latest Apache stable build 1.3 Download Zookeeper stable version
Download the stable version of HBase. In our case it is HBase 0.94.16.
Execute following command to download HBase 0.94.
wget http://apache.mirror.quintex.com/zookeeper/stable/zookeeper‐3.4.5.tar.gz
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.
tickTime= dataDir=/usr/local/zookeeper/data clientPort=
Start Zookeeper by executing the following command.
./zkServer.sh 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.