Topic can't be found when producing messages: UNKNOWN_TOPIC_OR_PARTITION

痴心易碎 提交于 2019-12-03 12:03:06
shiba goyal

Make the replication factor 2 for topic test and you won't get this exception anymore. Since you have a 2 broker cluster, execute the command below to produce messages:

kafka-console-producer.sh   --broker-list localhost:9092,localhost:9093 --topic test

This will send messages to both of the brokers in the clusters.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!