Kafka Consumer does not receive data when one of the brokers is down

后端 未结 2 847
情深已故
情深已故 2021-01-16 03:12

Kafka Quickstart
Using Kafka v2.1.0 on RHEL v6.9

Consumer fails to receive data when one of the Kafka brokers is down.

Steps performed:
1. Start

2条回答
  •  死守一世寂寞
    2021-01-16 03:52

    If the offsets topic is unavailable, you cannot consume.

    Look at the server.properties file for these, and see the comment above, and increase accordingly (only applies if topic doesn't already exist)

    # The replication factor for the group metadata internal topics "__consumer_offsets" and "__transaction_state"
    # For anything other than development testing, a value greater than 1 is recommended for to ensure availability such as 3.
    offsets.topic.replication.factor=1
    transaction.state.log.replication.factor=1
    

    According to your previous question, looks like it only has one replica

    See how you can increase replication factor for an existing topic

提交回复
热议问题