Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Zookeeper Installation and Configuration Guide, Study notes of Data Analysis & Statistical Methods

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

  • What commands are used to start and stop the Zookeeper server?
  • How do you create a configuration file for Zookeeper?
  • What are the prerequisites for installing Zookeeper?

Typology: Study notes

2020/2021

Uploaded on 05/16/2021

ashwini-khandre
ashwini-khandre 🇮🇳

5 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ZookeeperInstallationGuide
EnvironmentSetup
1.1InstallJava1.6+version
1.2InstalllatestApachestablebuild
1.3DownloadZ ookeeper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
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
pf3

Partial preview of the text

Download Zookeeper Installation and Configuration Guide and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

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.

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.