简体   繁体   English

如何设置 Apache Kafka 的复制因子?

[英]How do i set up Apache Kafka's Replication Factor?

I was just wondering how can i set replication factor in apache kafka?我只是想知道如何在 apache kafka 中设置复制因子? I can't find a good tutorial out there about this, I'm learning this for a mini project.我找不到关于这个的好教程,我正在为一个迷你项目学习这个。

If you have any links, Please link it down如果你有链接,请把它链接下来

In the broker properties, you define both internal and default auto-created topic replication factors.在代理属性中,您可以定义内部和默认自动创建的主题复制因子。 Ideally, you'd disable auto creation, however理想情况下,您会禁用自动创建,但是

Any other topic creation API requires replication factor to be specified, so refer any documentation you can find, starting with the official Kafka website任何其他主题创建 API 需要指定复制因子,因此请参阅您可以找到的任何文档,从 Kafka 官方网站开始

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM