How to configure zookeeper for Kafka

0 votes

Hi Team,

I am new to Kafka. I don't know how to configure zookeeper for Kafka. Can anyone help me with this?

Dec 7, 2020 in Apache Kafka by akhtar
• 38,260 points
1,099 views

1 answer to this question.

0 votes

Hi@akhtar,

It is a must to set up ZooKeeper for Kafka. ZooKeeper performs many tasks for Kafka, but in short, we can say that ZooKeeper manages the Kafka cluster state. 

  • Download ZooKeeper from the below-given link.

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

  • Unzip the file. Inside the conf directory, rename the file zoo_sample.cfg as zoo.cfg

  • The zoo.cfg file keeps configuration for ZooKeeper, i.e. on which port the ZooKeeper instance will listen, data directory, etc.

  • The default listen port is 2181. You can change this port by changing the client port.

  • The default data directory is /tmp/data. Change this, as you will not want ZooKeeper's data to be deleted after some random timeframe. 

  • Go to the bin directory.

  • Start ZooKeeper by executing the command ./zkServer.sh start.

answered Dec 7, 2020 by MD
• 95,460 points

Related Questions In Apache Kafka

0 votes
1 answer

How to commit message offsets in Kafka for reliable data pipeline?

You can use auto.commit.enable to allow Kafka ...READ MORE

answered Jul 10, 2018 in Apache Kafka by Shubham
• 13,490 points
3,595 views
0 votes
1 answer

How to purge Kafka Topic?

For your case what you can do ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 11,380 points
2,742 views
0 votes
1 answer

How to delete a topic in Kafka 0.8.1.1?

Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 11,380 points
1,844 views
+3 votes
1 answer

How to install Kafka on Windows System?

These are the steps to install Kafka ...READ MORE

answered Feb 25, 2019 in Apache Kafka by Ramya
14,185 views
+2 votes
1 answer

Is Kafka and Zookeeper are required in a Big Data Cluster?

Apache Kafka is one of the components ...READ MORE

answered Mar 23, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
2,115 views
0 votes
1 answer

Getting error while connecting zookeeper in Kafka - Spark Streaming integration

I guess you need provide this kafka.bootstrap.servers ...READ MORE

answered May 24, 2018 in Apache Spark by Shubham
• 13,490 points
2,815 views
+1 vote
1 answer

Kafka Feature

Here are some of the important features of ...READ MORE

answered Jun 7, 2018 in Apache Spark by Data_Nerd
• 2,390 points
1,913 views
0 votes
1 answer

How to reset the offset of messages consumed from Kafka?

The reset option only prints the result ...READ MORE

answered Jul 10, 2018 in Apache Kafka by Shubham
• 13,490 points
14,043 views
+1 vote
2 answers

How to check Kafka version?

Hi@akhtar, Actually, in kafka there is no command ...READ MORE

answered Feb 10, 2020 in Apache Kafka by MD
• 95,460 points
47,860 views
0 votes
1 answer

How to know leader information in kafka?

Hi@akhtar, To know leader information you can use ...READ MORE

answered Feb 10, 2020 in Apache Kafka by MD
• 95,460 points
16,625 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