From the course: Complete Guide to Apache Kafka for Beginners

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Kafka console consumer CLI

Kafka console consumer CLI

Hello, this is Stephane from Conduktor and in this lecture we're going to learn how to use the Kafka console consumer CLI. So we know that consumers can read from partitions the data in order and as well in the group. We'll see this later on. Okay. And so we're going to practice an example to read a Kafka topic. So we'll consume from the tail of the topic, that means only new messages. We'll also consume from the beginning of the topic, okay, to see all this stuff from the beginning. And finally, we're going to also show options to see both the key and the values in the output of our consumer. So let's get started. So let's go ahead and practice the Kafka console consumer so we can reproduce with the CLI where we saw with the UI. Okay. So in this example, we're going to use this command right here. So you can always type the command to see the documentation, but we'll learn the most important options right now. So we have a topic with one partition, but I want to create a second topic…

Contents