Spring Boot Kafka Microservices - #4 - Install and Setup Apache Kafka on Mac and Windows


Welcome to Spring Boot Kafka Event-Driven Microservices Series. In this lecture, you will learn how to Install and set up Apache Kafka on Mac and Windows.

Lecture - #4 - Install and Setup Apache Kafka on Mac and Windows

Install and Setup Apache Kafka

1. Download Kafka from the official website at https://kafka.apache.org/downloads

2. Extract Kafka zip in the local file system

Run the following commands in order to start all services in the correct order:

3. Start Zookeeper service. 

Use the below command to start the Zookeeper service:
# Start the ZooKeeper service
# Note: Soon, ZooKeeper will no longer be required by Apache Kafka.
$ bin/zookeeper-server-start.sh config/zookeeper.properties

4. Start Kafka Broker

Open another terminal session and run the below command to start the Kafka broker:
# Start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties
Once all services have successfully launched, you will have a basic Kafka environment running and ready to use.

Comments