kafka-workshop

Exercise: Using Kafka with Docker

Procedure

  1. git clone kafka-docker project
  2. Follow the steps at Pre-Requisites and Usage
    1. docker-compose up -d
    2. docker-compose scale kafka=3
  3. Send messages from within a Docker container
    1. docker-compose ps for active service containers
    2. docker-compose exec kafka bash to attach to one
  4. Shut down the containers and remove all stopped containers
    1. docker-compose stop
    2. docker container prune