How to get the relationship of consumer group and topics
<p>I'm using kafka 0.10 kafkaConsumer API to get consumers and topic set under consumer subscribed.</p>

<p>Now I can get topics and partitionIds successfully by topiclist method.</p>

<p>To get consumer group data, I'm not found method under KafkaConsumer, but I can get group list from zookeeper by "zookeeper.getChildren(ZkUtils.ConsumersPath(), false);".</p>

<p>My question is how to get the relationship of group and topics.
I know one group can subscribe one or more topics, but I don't know how to get the data by KafkaConsumer API or from zookeeper. </p>

<p>I had tried kafkaConsumer.subscription() but return is an empty list.</p>

<p>what I reference:
<a href="https://kafka.apache.org/0101/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html" rel="nofollow noreferrer">https://kafka.apache.org/0101/javadoc/index.html?org/apache/kafka/clients/consumer/KafkaConsumer.html</a></p>