apache-kafkaconfluent-platformconfluent-control-center

How to configure single broker for confluent control center


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)

Solution

  • 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