Start multiple brokers in kafka

牧云@^-^@ 提交于 2019-12-13 05:09:41

问题


Beginner in kafka and confluent package.I want to start multiple brokers so as to consume the topic. It can be done via this setting - {'bootstrap.server' : 'ip:your_host,...',}

This setting can be defined in the server config file or else in the script as well.

But how shall I run those?. If I just add multiple end points to the bootstrap servers, it gives this error:

java.lang.IllegalArgumentException: requirement failed: Each listener must have a different name, listeners: PLAINTEXT://:9092, PLAINTEXT://:9093


回答1:


Done. I had actually mentioned same port for producer and consumer and hence was the issue. Set up brokers on different ports and works fine even if one broker goes down.



来源:https://stackoverflow.com/questions/50773941/start-multiple-brokers-in-kafka

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