出于开发目的,我想为我的单个经纪人kafka设置控制中心,但由于异常而失败。我把我的配置和控制中心输出日志的详细信息放在这里。有人能帮忙建议一下吗?
[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)
您需要告诉Confluent Control Center为其主题使用单个代理。默认情况下,它被配置为需要三个以防止可能的数据丢失
在您的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
在"lib/system/system";
ExecStart=/usr/bin/control-center-start /etc/confluent-control-center/control-center-minimal.properties