Quick Kafka server development setup

Basic Kafka setup

Download Binary

  1. Go to Kafka open-source download URL: https://kafka.apache.org/downloads
  2. Find the latest available version & download the Kafka binary from the “Binary downloads” section.
download kafka binary

Extract

  1. Extract the file to a folder and navigate to the Kafka folder
  2. In a new terminal start zookeeper with the command: bin/zookeeper-server-start.sh config/zookeeper.properties
  3. In another terminal start Kafka broker with command: bin/kafka-server-start.sh config/server.properties

Your basic Kafka server has started on your local development machine.

Notes :

  • If there are any port conflicts, modify the corresponding property file used in the startup command to change the port.
  • For window users, there is a windows folder under bin use equivalent cmd file & part to start Kafka on window machine.

You may also like...

Leave a Reply

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