原文鏈接:https://blog.csdn.net/q1177660557/article/details/79000524
kafka報錯內容:
原因:因爲你的配置文件中的PLAINTEXT跟你請求的內容不同。
舉例來說,我在配置文件裏配置的listeners=PLAINTEXT://10.127.96.151:9092,但是我想測試的時候請求的是./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic topic1 --from-beginning
正確的應該是./kafka-console-consumer.sh --bootstrap-server 10.127.96.151:9092 --topic topic1 --from-beginning