We have just looked at contents of the log folders for every broker, and we have ensured that the partitions
were spread equally across all brokers, no less loanshark, coproducer, and produce something just
to stop it.
Let me close this up and the gold door file with commands.
Scroll down and let's select this comment before let's adjust to topic name locales like Seoul.
And he adjusted as well because we will launch consumer as well.
So let's compare this command gold to terminal.
Open up a new tab city to COFCO.
And Loung producer actually is not fully correct, we should specify an entire list of all brokers availability
to Gloster for redundancy again, but if there was only a single server, you will be able indeed connect
to the entire cluster and produce messages to all available brokers to make it fully correct.
Let me quickly adjust this comment and add another centavos here like we did here in this comment.
So let me quote this section based here like so and based here for consumer as well.
Great.
Let me copy this comment to once again go here, terminate this one clear terminal based on this command
center.
And now we are good to go.
So let's produce several messages.
First one will be Tesla.
Next one will be BMW.
Next one will be, let's say, Honda.
And next one will be, for example, Audi sold for messages were produced.
And now let's start the console, consumer and the consumer.
Those messages will go to file with commands and the copy of this command request that I have already
renamed the test topic two cars here.
And here was entire list of all Sarus available in the Kloster.
So let me copy this command and open up.
A new terminal window was usually talk Kafka.
Clear abdominal based command.
And actually, I will see empty output because I haven't that the distance from beginning option and
now this consumer will simply wait for new messages.
Let's actually do that.
Let's produce one more message here.
And it will be, let's say, Mazher item.
And now the consumer should receive this message and hear what is wonderful, now we have consumer running
and the producer also running as well, and we have produced some messages to our current topic.
Also, you may see that this consumer was connected to an entire topic, and that means that it will
read all messages from all politicians.
And currently there are five partitions and we have explored that all of them were spread across different
brokers.
Great.
And don't ask for you, please open up Dimpy folder and locate the all folders with logs and try to
find the which partitions were used for writing of those messages and how those messages were spread
across different partitions.
I will do it myself now, but I hope that you'll be able to figure it out yourself successfully.
So I wish you good luck.
OK, now let's proceed.
And the next list, the following.
Let's explore the details of this topic, topic cards and let's see the details about partitions and
observe how leaders were elected for a repartition.
Let's do that next by my.