edenhill / kcat

Generic command line non-JVM Apache Kafka producer and consumer
Other
5.41k stars 484 forks source link

kcat produces to same partition even with explicit -p -1 or explicit partition key #398

Closed alexbiehl closed 2 years ago

alexbiehl commented 2 years ago

In a bash script I am piping lines into kcat and it looks like it's producing every record to the partition 0 of my topic.

I tried

both of the measures didn't help. What am I missing?

The command I was starting out with seemed pretty vanilla and looked kinda like this:

kcat -X security.protocol=SSL -P -b $KAFKA_BROKERS -t some-topic

Any idea what could cause this phenomenon?

alexbiehl commented 2 years ago

Turns out the topic had only one partition 😮‍💨