From the course: Apache Kafka Essential Training: Getting Started (2021)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Setting up Kafka

Setting up Kafka

From the course: Apache Kafka Essential Training: Getting Started (2021)

Start my 1-month free trial

Setting up Kafka

- [Instructor] We will now be setting up Kafka for our exercises using Docker. The instructions for setting up Kafka are available in the file resources/chapteronesettingupKafka.txt. Please take a moment to review these steps. We are going to use Kafka in Docker. If you are using macOS or Windows OS, please install Docker desktop from the Docker website, docker.com/products/dockerDesktop. Kafka requires two containers, one for Zookeeper, and another for Kafka. The Docker compose configuration for the same is available in the Kafka single-node.yml file. Let's explore this file now. There are two services needed for the setup. The first one is Zookeeper. Zookeeper is a prerequisite for Kafka, and we will discuss more on this later in the course. We will be using the Docker image from Bitnami for Zookeeper. This exposes the port 2181. The container name is Zookeeper. Next, we have the Kafka service, which is also from…

Contents