[英]In Kafka, How can we get the metadata of a topic?
In Kafka, How can we get the metadata of a topic?在 Kafka 中,我们如何获取主题的元数据? If there is an option to get metadata and if I'm trying to get the metadata of a topic that doesn't existing, what happens?如果有获取元数据的选项,并且我试图获取不存在的主题的元数据,会发生什么?
kafka-topics --describe --bootstrap-server localhost:9092 --topic name
或者参考 Javadoc for AdminClient
类,或类似的你选择的编程语言
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.