CLI tool for consuming and producing Avro messages from Kafka.
pip install -e .
avrocat consume -t <topic> -b <broker> -r <schema_registry>
avrocat consume -t <topic> -b <broker> -r <schema_registry> -k <key> -P <num_partitions>
cat << EOF > CreateFoo.json
{
"class": "CreateFoo",
"data": {
"id": "12345",
"foo": "foo"
}
}
EOF
cat CreateFoo.json | avrocat produce -t <topic> -n <num_messages>
avrocat validate -t <topic> -f CreateFoo.json