Kafka Server

How to start the server in Kafka?

Before starting, please make sure you that you have successfully installed the Kafka and the servers are running. If not please check out this tutorial.

Learn Kafka

zookeeper comes with the Kafka distribution that we have downloaded already.

After that, we are going to spin up Kafka broker, once the broker is up it registers with zookeeper.

After that zookeeper manages and monitors the health of the Kafka broker.

Zookeeper plays a vital role when you have multiple brokers.

Setting Up Kafka

Check the Complete steps + tutorial link at Github.

  • Make sure you are navigated inside the Kafka/config root directory.

Edit server.properties file

log.dirs=c:/kafka/kafka-logs

Edit zookeeper.properties file

dataDir=c:/kafka/zookeeper-data
  • Make sure you are navigated inside the Kafka root directory.

Start Zookeeper and Kafka Broker

Always start zookeeper first, also in next versions zookeeper is going to remove, then will only Kafka Server.

Startup the Zookeeper.

> Open new cmd > go to Kafka folder, then start zookeeper server and pass config file to it.

.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties

-> you can see zookeeper has been started on port #2181

Startup the Kafka Broker

-> Open new cmd > go to Kafka folder, then start Kafka broker and pass config file to it.

.\bin\windows\kafka-server-start.bat .\config\server.properties

-> you can see Kafka server is running with brokerId=0

Kafka Tutorials

Next →

Previous ←

--

--

--

I am Full Stack Java Developer @ Tata Strive | Get blogs and tutorials related to the (React | Kafka | DevOps) | Follow me on LinkedIn https://www.linkedin.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The AWS Deployment with React, Express, and Mongo

External Tooling and Technology Analysis Template

What you need to know about Aurora Serverless v2, so far.

9 Built-in Functions Every Python Programmer Should Know (Part 2)

Life is a journey of twists and turns, peaks and valleys, mountains to climb and oceans to explore.

How to create Topic and Delete Topic in Kafka using Ubuntu?

How to Convert MSG to JPG in C# .Net Framework

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sagar Kudu

Sagar Kudu

I am Full Stack Java Developer @ Tata Strive | Get blogs and tutorials related to the (React | Kafka | DevOps) | Follow me on LinkedIn https://www.linkedin.com

More from Medium

MuleSoft — Message Processor & Script Components

Deploy a Spring boot Application on AWS Fargate.

Install and Setup Apache Tomcat 8 on CentOS/RHEL 7 🐧

Configuring an LDAP user registry in API Connect for user authentication