title: Retrieve the number of message from kafka queue via jenkins
body: <p>we, dev, have a consumer for a kafka queue (v2.11-0.10.2.1) running on a hadoop environment.</p>
  
  <p>we can retrieve the pending messages from the queue using this command (kafka running locally in each dev computer):</p>
  
  <pre><code>kafka-consumer-groups.bat --bootstrap-server server1:port1,server2:port2,server3:port3,server4:port4 --describe --group simple-csharp-consumer
  </code></pre>
  
  <p>but for security's sake, our access has been suspended (the dev team cannot run the command line above anymore). the infra guys said we could try doing the same task using jenkins, so security breach wouldn't be a problem they say.</p>
  
  <p>so, we need help doing the same (retrieving pending kafka messages) via a script running with jenkins.</p>
  
  <p>any help?</p>