title: What is the command for getting the list of Consumers of a particular topic in Kafka
body: <p>I know we can get the list of consumer groups and then pass any one of he consumer group to a particular topic to determine the consumers offset.</p>
  
  <p>Step 1: Use the following command to get list of consumer groups</p>
  
  <pre><code>kafka-consumer-groups --zookeeper &lt;Server-URL&gt; --list
  </code></pre>
  
  <p>From the list of consumers obtained, pick a consumer group
  Step 2: Get that particular consumer offset for a particular topic</p>
  
  <pre><code>kafka-consumer-offset-checker --zookeeper &lt;Server-URL&gt; --topic &lt;topic-name&gt; --group &lt;group-name&gt;
  </code></pre>
  
  <p>Same thing for bootstrap server.</p>
  
  <p>But in a single step i need a command to get list of consumers for a particular topic.</p>