简体   繁体   English

在 Kafka 中,我们如何获取主题的元数据?

[英]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.

相关问题 我们如何将 kafka 主题转储到 presto 中 - How we can Dump kafka topic into presto Confluent Kafka如何在不订阅的情况下获取特定主题元数据 - Confluent Kafka how to get specific topic metadata without subscribe 我们如何使用Apache Kafka API获取主题的复制因子和保留时间 - How can we get Replication Factor and Retention Hours of the Topic using Apache Kafka API 我们如何写入 Kafka 主题并从 IDE 本地读取 Kafka 主题 - How can we write to a Kafka topic and read from a kafka topic locally from IDE 我们如何使用 API 从 IDE 在 Kafka 中创建主题 - How Can we create a topic in Kafka from the IDE using API 在apache kafka中,我们如何在不删除主题的情况下删除_schemas主题的内容? - In apache kafka, how can we delete the content of _schemas topic without deleting the topic? 如何在 Java 中获取主题级别的 Kafka 指标? - How can I get Kafka metrics at the topic level in Java? 如何获取 kafka 主题分区的最后/结束偏移量? - How can I get the last/end offset of a kafka topic partition? Kafka:元数据异常中不存在主题 - Kafka: Topic not present in metadata Exception 无法从自动创建的 kafka 主题获取消息 - Can not get message from autocreated kafka topic
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM