简体   繁体   中英

How to prevent consumer from creating topic in kafka?

I am using java Spring-Boot framework and trying to prevent our consumer from creating topic in kafka by setting the config properties.

where Configurations are:

From broker side: auto.create.topics.enable=true

From consumer side auto.create.topics.enable=false

for consumer we made auto creation topic false where on broker it is true .

Above configs are not working for us, and Also if We have any other ways to archive the same we can discuss.

auto.create.topics.enable is not a consumer config. It needs to be allow.auto.create.topics , but is only a valid option in kafka-clients version 2.3+

Please refer this post Disable auto topic creation from Spring Kafka Consumer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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