Kafka command line tool that likes JSON
short one to address #125
all
it's been a while, thank you for your patience 🙏
all
consume:
topic:
produce:
-compression
to produce command to set codec - big thanks to @ooesili #73admin:
group:
Quick one:
all:
kt consume -topic test | kt produce -topic test2
still works. To prevent pretty printing anyway, you can pass -pretty=false
to any command.consume:
group:
topic:
group:
-reset
request is sent.group:
-filter
flagconsume:
produce:
-buffersize
flag to control buffer size for reading lines from stdin. Fixes issue where large input lines would be ignored silently.all:
offset:
produce:
-partition
to set partition when using -literal
- kudos to @mkokho, thanks! 😸topic & consume:
all:
-version
flag to specify Kafka protocol version to use. Defaults to v0.10.0.0
.kt-{command}-{whoami}
, e.g. kt-consume-fgeller
-literal
option to prevent interpretation of stdin line and instead use it literally as the value and null for the key.produce #25: Adds option to use default partitioner. Currently only the hashCode partitioner is available. By default no partitioner is used. This means that either the partition is specified or it defaults to 0.
⚠️ produce: If the stdin line cannot be deserialized into a JSON object, its string value is used as the value and the key will be nil/null and the partition 0.