我去年在我的mac上安装了一个kafka,系统内有很多主题。现在我将zookeeper和kafka升级到最新版本。
通过运行zookeeper,就成功了
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
Run Code Online (Sandbox Code Playgroud)
然后是经纪人:
kafka-server-start /usr/local/etc/kafka/server.properties
Run Code Online (Sandbox Code Playgroud)
但是它出现了错误
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.
Run Code Online (Sandbox Code Playgroud)
我该如何解决呢?
Confluence 企业许可证存储在_confluent-command主题中。该主题是默认创建的,并包含与通过属性提供的许可证密钥相对应的许可证confluent.license。因此,当您启动 Kafka 服务器时,它会尝试以复制因子 3 创建它,但只有 1 个可用代理,因此失败了。
confluent.topic.replication.factor将属性设置为文件1中/usr/local/etc/kafka/server.properties。
| 归档时间: |
|
| 查看次数: |
11461 次 |
| 最近记录: |