简体   繁体   English

kafka _schemas 主题删除后,在没有 cleanup.policy 的情况下创建

[英]kafka _schemas topic when deleted, gets created without cleanup.policy

I am using Confluent Platform version 5.3.2 and in this i can see that _schemas topic is created with cleanup.policy as compact.我使用的是 Confluent Platform 版本 5.3.2,在此我可以看到 _schemas 主题是使用 cleanup.policy 创建的,作为紧凑。 Without this the schema registry will not be started.没有这个,模式注册表将不会启动。 Now if i delete the _schemas topi, it will be created automatically, but without the cleanup.policy and because of this, if we restart the schema registry, it fails to start.现在,如果我删除 _schemas topi,它将自动创建,但没有 cleanup.policy,因此,如果我们重新启动模式注册表,它将无法启动。

How can we make the _schemas topics to be created with cleanup.policy=compact when it is deleted and created automatically?我们怎样才能让 _schemas 主题在自动删除和创建时使用 cleanup.policy=compact 创建?

Stop the registry.停止注册表。 Delete the topic.删除主题。 Create the topic manually with the appropriate settings (compact, high replication, one partition).使用适当的设置(紧凑、高复制、一个分区)手动创建主题。 Never delete the topic again.永远不要再删除主题。

Or upgrade your registry version, and hopefully the topic will be created correctly或者升级你的注册表版本,希望主题能正确创建

暂无
暂无

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

相关问题 如何为 Kafka 主题设置 cleanup.policy 'delete' 和 'compact'? - How to set cleanup.policy 'delete' AND 'compact' for a Kafka topic? 为什么主题__consumer_offsets 的cleanup.policy 是COMPACT? - Why does the cleanup.policy of the topic __consumer_offsets is COMPACT? kafka-connect 分布式工作者是否可以使用配置“cleanup.policy=compact,delete”的主题“connect-offset”工作 - could kafka-connect distributed worker work with topic 'connect-offset' with configuration 'cleanup.policy=compact,delete' log.retention 和 cleanup.policy - Spring Kafka - log.retention and cleanup.policy - Spring Kafka Kafka配置:参数“cleanup.policy”和参数“log.cleanup.policy”有什么区别? - Kafka configuration: what's the difference between parameter "cleanup.policy" and parameter "log.cleanup.policy"? 如果 offsets.retention.minutes=2 和 cleanup.policy=compact,kafka 会删除提交的偏移量还是压缩它 - Will kafka delete the committed offset or compact it if offsets.retention.minutes=2 and cleanup.policy=compact 创建主题时在Kafka生产者中获取错误错误,但该主题在Kafka服务器上创建 - Gets an error error in Kafka producer when creating topic but the topic is created on the Kafka server Kafka Schema Registry - 模式主题 _schemas 的保留策略不正确 - Kafka Schema Registry - The retention policy of the schema topic _schemas is incorrect Kafka主题未删除 - Kafka topic not being deleted 删除了 kafka 主题的 Shema - Deleted Shema for kafka topic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM