How to configure single broker for confluent control center

2.2k Views Asked by At

For develop purpose, I want to setup control center for my single broker kafka, but it was failed because of the exception. I put my configurations and control center output log details here. Could anyone help advise on it ?

[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)
2

There are 2 best solutions below

2
On BEST ANSWER

You need to tell Confluent Control Center to use a single broker for its topics. By default it's configured to require three to prevent possible data loss

In your control-center-production.properties set:

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

change the service configuration confluent-control-center.service file in "/lib/system/system"

ExecStart=/usr/bin/control-center-start /etc/confluent-control-center/control-center-minimal.properties