I am using kafka 0.8 version and very much new to it.
I want to know the list of topics created in kafka server along with it\'s
metadata.
You can use zookeeper API to get the list of brokers as mentioned below:
ZooKeeper zk = new ZooKeeper("zookeeperhost, 10000, null);
List ids = zk.getChildren("/brokers/ids", false);
List
Use this broker list to get all the topic using the following link
https://cwiki.apache.org/confluence/display/KAFKA/Finding+Topic+and+Partition+Leader