
生产数据
# 发送信息 指定topic即可
kafka-console-producer.sh \
--bootstrap-server bigdata01:9092 \
--topic topicA # 主题
# 进程
29124 ConsoleProducer

消费数据
# 消费数据
kafka-console-consumer.sh \
--bootstrap-server bigdata01:9092 \
--topic topicA \ # 主题
--from-beginning \ # 从头开始
--group donghu2 # 组名
# 进程
28614 ConsoleConsumer