GitHub user ethiebaut opened a pull request:
https://github.com/apache/kafka/pull/4282
KAFKA-6293 Support for Avro formatter in ConsoleConsumer
Support for Avro formatter in ConsoleConsumer With Confluent Schema
Registry as per https://issues.apache.org/jira/browse/KAFKA-6293
This adds the ability the display Avro payloads when listening for messages
in kafka-console-consumer.sh.
This proposed PR will display Avro payloads (in JSON) when executed with
the following parameters:
bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic
mytopic --confluent-server localhost:8081 --formatter
kafka.tools.AvroMessageFormatter
This contribution is my original work and I license the work to the project
under the project's open source license.
All tests passed:
BUILD SUCCESSFUL in 21m 18s
90 actionable tasks: 60 executed, 30 up-to-date
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ethiebaut/kafka avro-deserializer
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/4282.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4282
----
commit a49102979ddd0183070e8aef2cf1cafb9ee317cd
Author: Eric Thiebaut-George <[email protected]>
Date: 2017-12-01T12:54:39Z
KAFKA-6293 Support for Avro formatter in ConsoleConsumer With Confluent
Schema Registry
----
---