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

Unlock the full course today

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

Setting up topics

Setting up topics

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

Start my 1-month free trial

Setting up topics

- [Male Narrator] In this video, let's create a topic for the usecase, using the Kafka command line. The commands for this chapter are available under the resources directory in chapter-6-commands.txt. Let us go and create the topic now. In order to create the topic, we use the kafka-topics.sh command. We specify the topic name as kafka.usecase.students, and the partition counts as two, as expected from the usecase. Once we have created the topic, we can check if the topic has been successfully created using the descript command. We can see that the topic shows up here with a partition count of two and there are two lines shown here, one for each partition that has been created. Each partition has the same data rest 1001. Let's now proceed to publish and subscribe from this topic in the next video.

Contents