1. 交互试验
1.1 试验过程

image.png

image.png

image.png

image.png

image.png

image.png
C:\software\kafka_2.12-2.2.0>bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 3 --partitions 1 --topic clustertopic

image.png
C:\software\kafka_2.12-2.2.0>bin\windows\kafka-topics.bat --describe --bootstrap-server localhost:9092 --topic clustertopic

image.png

image.png
C:\software\kafka_2.12-2.2.0>bin\windows\kafka-console-producer.bat --broker-list localhost:9092 --topic clustertopic

image.png
附带说一下我重启整个kafka后接受消息情况:

image.png
1.2 下面展示Leader被杀掉后的效果

image.png

image.png

image.png

image.png
2. 从文本导入消息到kafka

image.png

image.png

image.png

image.png