Kafka consumer fails to consume if first broker is down

后端 未结 2 1340
难免孤独
难免孤独 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:47

    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

提交回复
热议问题