首页 > 解决方案 > 如何为融合控制中心配置单个代理

问题描述

出于开发目的,我想为我的单一代理卡夫卡设置控制中心,但由于异常而失败。我将我的配置和控制中心输出日志详细信息放在这里。任何人都可以帮忙提供建议吗?

[2020-04-04 11:27:55,883] ERROR [main] 3 brokers are required but only found 1. Check the topic replication settings in the properties file or add more brokers to your cluster (io.confluent.controlcenter.KafkaHelper)

标签: apache-kafkaconfluent-platformconfluent-control-center

解决方案


您需要告诉 Confluent 控制中心为其主题使用单个代理。默认情况下,它配置为需要三个以防止可能的数据丢失

在你的control-center-production.properties集合中:

confluent.controlcenter.internal.topics.replication=1
confluent.controlcenter.command.topic.replication=1
confluent.monitoring.interceptor.topic.replication=1
confluent.metrics.topic.replication=1

推荐阅读