We have just successfully created the first topic in a class time, and the name of this topic is cities,
and you could use Kafka topics as a script with the named option.
This does list in order to list all topics available in the Gloster.
And now it's a good time to start sending some messages to dystopic cities.
And for that we could use any producer.
There is a built in producer that the ships with Kafka installation and its name is Kafka Council producer.
It is located in Benfold and here it is, Kafka cocounsel producer.
Let's use the script.
Let's clear terminal and type been Kafka, this console desk producer, Lotus Edge and let's try to
execute it like soul.
Of course, as usually we will get a list of options, it means that in order to start this console
producer, we need to specify some required arguments.
And first required argument is Storbeck.
Here you see that it is required and a second one is located at the beginning of this list, and it
is Breuker least this one.
And basically in this list, we need to specify at least of the brokers.
And if there are multiple brokers available, then you should split them using a like sole.
OK, let's add that those arguments broker list and Dobek, let's clear Terminal and Type II.
Beenz Legoff, this console desk producer S.H. Next comes list argument.
And here will be connections between for our single broker it is localhost.
Kolon, 1992, and next comes the second required argument, Dobek does that Storbeck and the here will
be the name of the topic we want to produce matter.
Just Storm and name of our first topic is cities like.
So let's press enter and see what will happen.
And we see this broad, and that means that this Kafka console producer has successfully connected to
Kafka broker and now we are able to start sending some messages.
Our topic that we have created is called Cities.
And that's why let's send the names of some cities, for example.
Let's start with New York.
Press enter, the next one will be in Berlin, next one, let's say, will be Paris.
One more.
And one more thing.
OK, we have just successfully sent several messages using Kafka console producer, but now there are
several questions.
First one, where those messages successfully received by coffeecake, last or not, second one where
those messages were stored in Kafka, Gloster and last one, how we are able to consume those messages
from Kafka, Kloster.
And let me answer the last question first and the next.
Let's launch built in Kafka Council consumer and try to consume those messages that we have just sent
by producer.
Let's try that next.
Bye bye.