kafka错误处理 ERROR kafka.server.KafkaApis: [KafkaApi-83] Number of alive brokers '2' does not meet the required replication factor '3' for the offsets topic (configured via 'offsets.topic.replication.factor'). This error can be ignored if the cluster is starting up and not all brokers are up yet.

ERROR kafka.server.KafkaApis: [KafkaApi-83] Number of alive brokers '2' does not meet the required replication factor '3' for the offsets topic (configured via 'offsets.topic.replication.factor'). This error can be ignored if the cluster is starting up and not all brokers are up yet.

问题原因:
此类问题在测试环境中容易出现,由于节点资源限制,brokers实例比offset topic副本数量少时出现此问题。
解决方案:
在server.properties中增加brokers实例数或者减少offset topic副本数量,配置项名称:offsets.topic.replication.factor(需要重启kafka服务)

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注