Steps to install Kafka

Download the link for Kafka source – and then:
tar xzf Kafka-0.8.0-src.tgz

  • Enter the directory and run the commands:
    sudo ./sbt update
    sudo ./sbt package
  • To start the Zookeeper server, run (in the directory)
  • Now start the Kafka server, run (in the directory)
    bin/ config/
  • Create a Topic of publishing messages,
    bin/ –zookeeper localhost:2181 –replica 1 –partition .
  • 1–Topic test
    (Here we can mention the number of replica instances, partitions and the name of the Topic)
  • Publish-Subscribe some messages by,
    – Run the producer,
    bin/  –broker-list localhost:9092 –Topic test
    Now type down the message we want to send.
    – Later, run the consumer,
    bin/ –zookeeper localhost:2181 –Topic test–from-beginning

Learn Kafka

Read these Top Trending Kafka Interview Q’s now that helps you grab high-paying jobs !

Course Schedule

Name Date
Big Data Course 2022-12-03 2022-12-04
(Sat-Sun) Weekend batch
View Details
Big Data Course 2022-12-10 2022-12-11
(Sat-Sun) Weekend batch
View Details
Big Data Course 2022-12-17 2022-12-18
(Sat-Sun) Weekend batch
View Details

Leave a Reply

Your email address will not be published. Required fields are marked *