Kafka consumer fails to consume if first broker is down

六眼飞鱼酱① 提交于 2019-12-01 18:23:04

Try to check "offsets.topic.replication.factor" in server-*.properties file

For example:

############################# Internal Topic Settings       
# The replication factor for the group metadata internal topics    
# For anything other than development testing, a value greater than 1 is  recommended for to ensure availability such as 3.
offsets.topic.replication.factor=3

http://kafka.apache.org/documentation/#brokerconfigs

Using KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR on yml file solve this issue.

E.g. Using 2 workers on docker-swarm.

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