[英]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?
kafka-avro-console-consumer --property print.schema.ids=true
https://github.com/confluentinc/schema-registry/pull/901 https://github.com/confluentinc/schema-registry/pull/901
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.