gpt4 book ai didi

apache-kafka - 复制因子 : 3 larger than available brokers: 1 when starting the kafka

转载 作者:行者123 更新时间:2023-12-02 19:19:47 25 4
gpt4 key购买 nike

去年我的mac里装了一个kafka,里面有很多系统内的topic。现在我把zookeeper和kafka升级到最新版本。

通过运行zookeeper,成功

zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties

然后是经纪人:

kafka-server-start /usr/local/etc/kafka/server.properties

但是它出现了错误

INFO [Admin Manager on Broker 0]: Error processing create topic request CreatableTopic(name='_confluent-license', numPartitions=1, replicationFactor=3, assignments=[], configs=[CreateableTopicConfig(name='cleanup.policy', value='compact'), CreateableTopicConfig(name='min.insync.replicas', value='2')]) (kafka.server.AdminManager)
org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 3 larger than available brokers: 1.

我该如何解决?

最佳答案

Confluent 企业许可证存储在 _confluent-command 主题中。该主题是默认创建的,包含与通过 confluent.license 属性提供的许可证 key 相对应的许可证。因此,当您启动 Kafka 服务器时,它会尝试使用 3 的复制因子创建它,但只有 1 个代理可用,因此它失败了。

/usr/local/etc/kafka/server.properties 文件中将 confluent.topic.replication.factor 属性设置为 1

关于apache-kafka - 复制因子 : 3 larger than available brokers: 1 when starting the kafka,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63215129/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com