Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to find leader of a particular partition without using Zookeeper

Highlighted

How to find leader of a particular partition without using Zookeeper

New Contributor

Hi

 

I would like to know the broker which is the leader of a particular topic partition via the Kafka Client. I looked around a lot on Stackoverflow and Google but could find only the APIs provided by zkUtils, which is now deprecated.
What is the recommended way for finding this metadata info now?

Thank you.