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)

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay