Why is kcat showing the wrong topics?
Robin Moffatt

Robin Moffatt @rmoff

About: Robin is a Principal DevEx Engineer. He has been speaking at conferences since 2009 including QCon, Devoxx, Strata, Kafka Summit, and Øredev.

Location:
Ilkley, UK
Joined:
Oct 7, 2019

Why is kcat showing the wrong topics?

Publish Date: Mar 14
0 0

Much as I love kcat (🤫 it’ll always be kafkacat to me…), this morning I nearly fell out with it 👇

😖 I thought I was going stir crazy, after listing topics on a broker and seeing topics from a different broker.

😵 WTF 😵

It turns out that the ~/.config.kcat.conf I created last week and was so proud to thinking to do takes 🚨PRIORITY🚨 over any CLI arguments provided.

So I was merrily telling it with CLI flag -b to use broker X:

kcat -b my-local-broker:9092 -L
Enter fullscreen mode Exit fullscreen mode

and it was merrily listing topics from broker Y that’s specified in the config file:

$ cat ~/.config/kcat.conf
metadata.broker.list=lol-i-will-use-this-broker-instead-ha-ha-ha:9092
Enter fullscreen mode Exit fullscreen mode

I still like the config file idea (Kris Jenkins wrote a nice blog article about it here), I just need to remember about it next time 🤦

Comments 0 total

    Add comment