简体   繁体   English

如何使用 CLI 工具从 Kafka 消息中获取嵌入式模式 ID?

[英]How to get the embedded schema id from a Kafka message using a CLI tool?

How to get the embedded schema id from a Kafka message using a CLI tool?如何使用 CLI 工具从 Kafka 消息中获取嵌入式模式 ID?

I am trying using kcat and I can parse pointing to my Schema Registry, but for debugging purposes, I want to get it in bytes and parse the schema id out of the message.我正在尝试使用kcat并且可以解析指向我的模式注册表,但出于调试目的,我想以字节为单位获取它并从消息中解析模式 id。

It is known that the id is in the 1-4 bytes. 已知id在1-4个字节。 How can I parse the bytes and extract the id from my own terminal?如何解析字节并从我自己的终端中提取 id?

暂无
暂无

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

相关问题 我如何使用嵌入式模式从 Kafka 反序列化 Avro - How I deserialize Avro from Kafka with embedded schema 如何从Kafka中收到的消息中获取Avro模式对象? - How can i get the Avro schema object from the received message in kafka? 如何使用 Header 从一条 Kafka 消息中获取多个对象 - How to get multiple objects from one Kafka message using Header 如何从 kafka 客户端获取架构和 kafka 主题信息? - How to get schema along with kafka topic information from kafka client? 如何使用 python 从具有模式 ID 和版本的融合模式注册表中获取模式 - How to get schema from confluent schema registry with schema id and version using python 我们可以使用密钥从 Kafka 获取值吗? 我们如何在 Kafka 消息中传递 header? - Can we get the value from Kafka using key? How we can pass header in Kafka Message? 如何使用CreatDirectStream获取kafka消息的主题? - How to get the topic of the kafka message using CreatDirectStream? 如何从kafka主题通过密钥获取消息 - How to get message by key from kafka topic Kafka Streams如何从scala中的kafka消息中获取时间戳 - Kafka Streams how to get TimeStamp from kafka message in scala 在 Kafka Streams 中使用 upgrade.from config 在使用 embedded-kafka-schema-registry 的测试中导致“BindException:地址已在使用”错误 - Using upgrade.from config in Kafka Streams is causing a "BindException: Address already in use" error in tests using embedded-kafka-schema-registry
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM