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, 2019 in Big Data Hadoop by John
5,357 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, 2019 by Omkar
• 69,220 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
• 11,380 points
665 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
• 11,380 points
1,518 views
0 votes
1 answer

How to upload file to HDFS in Ubuntu

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

answered Apr 19, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
1,656 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
• 69,220 points
4,671 views
+1 vote
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
• 11,380 points
11,072 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
• 11,380 points
2,571 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,060 views
–1 vote
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,350 points
4,639 views
0 votes
1 answer

How to install Hadoop in Ubuntu?

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

answered Feb 19, 2019 in Big Data Hadoop by Omkar
• 69,220 points
1,797 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
• 69,220 points
2,581 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP