【发布时间】:2021-12-28 12:19:48
【问题描述】:
我正在尝试找到最简单的方法来以可读格式从 Kafka 主题中读取 Avro 消息。可以选择通过以下方式使用 Confluent kafka-avro-console-consumer
./kafka-avro-console-consumer \
--topic topic \
--from-beginning \
--bootstrap-server bootstrap_server_url \
--max-messages 10 \
--property schema.registry.url=schema_registry_url
但为此,我需要下载整个 Confluent 平台 (1.7 GB),我认为这在我的场景中是多余的。
有没有其他方法可以轻松地从终端的 Kafka 主题中获取 Avro 消息?
【问题讨论】:
标签: apache-kafka avro confluent-platform