How to install Zookeeper in Ubuntu?

0 votes
I am learning Hadoop and now want to start with Zookeeper. Can someone tell me how to install Zoopkeeper?
Feb 20 in Big Data Hadoop by John
475 views

1 answer to this question.

0 votes

There are two ways to install Zookeeper:

You can either use the apt-get method to install it like this:

$ sudo apt-get install zookeeperd

And if you want to install a particular version or stable versions, then follow the below steps:

To install Zookeeper, first download Zookeeper from this link:

http://zookeeper.apache.org/releases.html

Then go to the directory where this file is downloaded and extract the Zookeeper files:

$ cd Downloads

$ tar -xvf zookeeper-3.4.12.tar.gz

Now you must configure Zookeeper. To do this, go the Zookeeper directory and create a new directory name data.

Now you have to create a configuration file.

$ cd conf

$ nano zoo.cfg

and copy the follow entries in that file:

tickTime = 2000

dataDir = /path/to/zookeeper/data

clientPort = 2181

initLimit = 5

syncLimit = 2

NOTE: In the above entries, replace path/to/zookeeper with the path to the zookeeper directory.

Save and exit.

That’s it. Now to start zookeeper, go to the bin directory and run:

answered Feb 20 by Omkar
• 67,660 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to install Hadoop in Ubuntu?

Follow the steps as mentioned in the ...READ MORE

answered May 17, 2018 in Big Data Hadoop by nitinrawat895
• 10,730 points
49 views
0 votes
1 answer

How to install Hadoop on Ubuntu?

You can refer to this blog by ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,730 points
369 views
0 votes
1 answer

How to upload file to HDFS in Ubuntu

you can use  hadoop fs -copyFromLocal  "/home/ritwik ...READ MORE

answered Apr 18, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
153 views
–1 vote
1 answer

How to uninstall and install mysql-server in centos?

Please find below the command to uninstall ...READ MORE

answered Dec 27, 2018 in Big Data Hadoop by Omkar
• 67,660 points
116 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,730 points
3,361 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,730 points
402 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,659 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,216 views
0 votes
1 answer

How to install Hadoop in Ubuntu?

Hey. Follow these steps to install hadoop. First ...READ MORE

answered Feb 19 in Big Data Hadoop by Omkar
• 67,660 points
161 views
0 votes
1 answer

How to open MySql console in Ubuntu?

sudo service mysqld restart mysql -u <username> root ...READ MORE

answered Dec 14, 2018 in Big Data Hadoop by Omkar
• 67,660 points
121 views