There is a Scala API. You can take a look at TopicCommand.scala as
kafka-topics.sh simply calls that class.

Tim

On Tue, May 20, 2014 at 3:41 PM, Saurabh Agarwal (BLOOMBERG/ 731 LEX
-) <sagarwal...@bloomberg.net> wrote:
> Hi,
>
> Is there java API in kafka to list topics and partitions in the kafka broker?
> Thanks,
> Saurabh.

Reply via email to