DEV Community

Robin Moffatt
Robin Moffatt

Posted on • Originally published at rmoff.net on

Why is kcat showing the wrong topics?

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 🤦

Top comments (0)