Kafka consumer fails to consume if first broker is down

后端 未结 2 1364
难免孤独
难免孤独 2021-01-18 16:21

I\'m using latest version of kafka(kafka_2.12-1.0.0.tgz). I have setup simple cluster with 3 brokers(just changed broker.id=1 and listeners=PLAINTEXT://:9092 in properties f

2条回答
  •  不思量自难忘°
    2021-01-18 16:56

    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
    

提交回复
热议问题