First, let's take a look at the kafka consumer process. We can see that we need to create a consumeKafka_0_10 because the version of kafka we use is 0_10, right? We need to use the corresponding version, consumer, and then use a logattribute processor. consumption
We put the data in this processor for viewing
Then there is the need to configure consumekafka_0_10, the consumer processor
The address of the brokers here, and the topic, this should be the same as the name of the topic that the producer puts in the data
Then groupId, if you are a group, just write one at will
Then offset reset here is the latest consumption from the latest data
Then look at the settings of the logattribute processor, set the self-connection, and enable it.
Then you can start the processor and check the logs. Of course, first run the producer in the previous section, and then run the
consumer