Twitter
Google plus
Facebook
Vimeo
Pinterest

Fluid Edge Themes

Install Apache Kafka on Windows

Hope you are clear about Apache Kafka introduction through my previous post. Here we will go through how we can install Apache Kafka on Windows.

STEP 1: Install JAVA 8 SDK

Make sure you installed JAVA 8 SDK on your system.  You can use chocolatey ( https://chocolatey.org/ ) windows package manager for the same.

and make sure java SDK installed successfully.

STEP 2: Download and Install Apache Kafka Binaries

We will Apache Kafka binaries for installing Apache Kafka.  Go to Apache Kafka official download page (https://kafka.apache.org/downloads) and download the binaries.

STEP 3: Create Data folder for Zookeeper and Apache Kafka

Create “data” folder and Kafka / Zookeeper directories inside data folder

STEP 4:  Change the default configuration value

Update zookeeper data directory path in “config/zookeeper.Properties” configuration file.

Update Apache Kafka log file path in “config/server.properties” configuration file.

STEP 5:  Start Zookeeper

Now time to start zookeeper from command prompt. Change your directory to bin\windows and execute zookeeper-server-start.bat command with config/zookeeper.Properties configuration file.

And make sure zookeeper started successfully

STEP 6:  Start Apache Kafka

Finally time to start Apache Kafka from command prompt. Run kafka-server-start.bat command with kafka config/server.properties configuration file.

This will start our Apache Kafka successfully.

Conclusion

That is all for installing Apache Kafka on windows. Time to understand some of the Apache Kafka theory topics now. Please read Understanding Apache Kafka Topics and Partitions before we play around with Apache Kafka CLI commands.

Post a comment