apache-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-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
推荐阅读
- kotlin - Kotlin 附加到文件
- eclipse - 无法在 Eclipse Photon for Websphere 中创建 Portlet 项目
- asp.net-mvc - AzureKeyVault ConfigurationBuilder 中的 connectionString 属性是什么样的?
- ruby-on-rails - 如果使用任何时候 gem 失败,请稍后再次尝试 rake 任务
- python - Discord.py 机器人清单
- rest - Symfony 4 Rest API Token Verification 调用启动方法默认
- javascript - [JS][AJAX] 第二个 ajax 不起作用。为什么?
- javascript - 材质 ui 边框颜色覆盖 texbox
- java - 映射 JavaRDD 时删除空值
- javascript - 如何在没有后端的情况下同步 JS 计时器?