文章目录
1.概述
文章重复了:【Kafka】kafka replication factor : 3 larger than avaiable brokers:2
kafka现在一创建消费者就报错,1 larger than available brokers: 0
.
启动没问题,代码一创建消费者就报几把错,以前都没问题
创建消费者报错
根据报错找到报错位置
/**
* There are 3 goals of replica assignment:
*
* 1. Spread the replicas evenly among brokers.
* 2. For partitions assigned to a particular broker, their other replicas are spread over the other brokers.