We have just launched Gulf cocounsel producer connected to one of the servers in Gloucester, and they
sent some messages to see this and hear what those messages and now this console producer is still up
and running and we are able to send another messages.
But no, let's try to consume messages from coffeecake last hour.
And for that, we need to launch consumer that will consume messages from this topic.
And luckily, there was a golf course or consumer available in Kafka out of the box.
Let's use it.
Let's open up a window.
Let me make it smaller like so, and here go to scaffolder and lounge car consumer with the help of
building script goldkamp, this council, this consumer, this one lisbeth's and usually know without
any arguments.
If you'll scroll up to the beginning of this options list, you'll find out that there was required
argument called Bootstrap Celeron, this one and this argument is already familiar to you.
It supplies a list of Kafka sellers we want to connect to.
We have just single server.
That's why we need to specify it like so localhost Cole, 1992.
OK, let's copy this argument.
Clear time and I'll go back to Kafka Council Consumer Base.
This argument and type here localhost Cole in 1992 and press enter.
And again, I see a list of health options, and that means that there is another argument that is required.
Let's go back to the beginning of this output.
And here you see this message, exactly one of why at least all topic is required.
And that means that in order to successfully launch a console consumer, we need to specify either why
at least argument or topic argument.
Using wordlist argument, you are able to connect to a set of topics and read messages from multiple
topics using wild card syntax.
But our goal for now is to read messages just from single topic called c.D.
That's why let's specify argument topic with name of the topic.
OK, let's clear terminal again and go to this comment and add another argument topic.
And here was the name of the topic cities.
And now let's enter.
And it seems that now Descript is up and running, but we don't see any messages in the council, let's
before let's go to Kafka console producer and produce one more message and let's send another city name,
for example, Delli like.
So let's press enter.
And now I'll get Daley here in the council consumer, and that is a good sign, it means that the consumer
is running correctly and now it receives all messages that are being sent by a producer.
Let's send another message, for example, Dubai.
And this message was successfully received by consumer as well, but now you may ask me a question,
but what about those messages that were sent by a producer here from New York to Sydney?
Let me answer this question in the next lecture by by.