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.
with Kafka 0.9.0
you can list the topics in the server with the provided consumer method listTopics();
eg.
Map > topics;
Properties props = new Properties();
props.put("bootstrap.servers", "1.2.3.4:9092");
props.put("group.id", "test-consumer-group");
props.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
props.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
KafkaConsumer consumer = new KafkaConsumer(props);
topics = consumer.listTopics();
consumer.close();