kafka-workshop
  • WWCode Dublin - Kafka Workshop
  • Setup your Environment
  • Start your Kafka server
  • Managing Topics
  • Producer
  • Consumer
  • Python Client - Overview
  • Producer in Python
  • Consumer in Python
Powered by GitBook
On this page
  • Docker way
  • Local installation

Start your Kafka server

Let's start by spinning up our Kafka Cluster

Kafka use Zookeeper, therefore before starting up Kafka we need to run Zookeeper as well :)

Docker way

Enter to the cloned repository directory:

cd wwcode-kafka-workshop/kafka-cluster

Start your Kafka Cluster

docker-compose up

Local installation

Enter the folder where you extracted Kafka binaries

cd kafka_2.11-2.0.0/bin

Tip:

If you are running on windows

  • Folder to find CLI scripts : bin/windows

  • Scripts are not .sh extensions but .bat

Kafka requires Zookeeper, therefore we need to start Zookeeper first

bin/zookeeper-server-start.sh config/zookeeper.properties &

Start Kafka Server

bin/kafka-server-start.sh config/server.properties

Boom !! You are a rock star by having a Kafka Cluster already up :-)

Having trouble?

  • Check your ports are free:

    • Kafka port: 9092

    • Zookeeper port: 2181

  • Check you have Java installed

PreviousSetup your EnvironmentNextManaging Topics

Last updated 6 years ago