title: Unable to run kafka connect datagen inside kafka connect docker image
body: <p>I am trying to run kafka datagen connector inside kafka-connect container and my kafka resides in AWS MSK using : <a href="https://github.com/confluentinc/kafka-connect-datagen/blob/master/Dockerfile-confluenthub" rel="nofollow noreferrer">https://github.com/confluentinc/kafka-connect-datagen/blob/master/Dockerfile-confluenthub</a>.</p>
  <p>I am using kafdrop as a web browser for kafka broker (MSK). I don't see Kafka datagen generating any test messages.
  Is there anything other configuration I need to do except installing the kafka-datagen connector</p>
  <p>Also, how can I check inside confluentinc/kafka-connect image what topics are created and whether messages are consumed or not?</p>
  <p>Dockerfile looks like :</p>
  <pre><code>
  ARG BASE_PREFIX=confluentinc 
  ARG CONNECT_IMAGE=cp-kafka-connect
  
  FROM $BASE_PREFIX/$CONNECT_IMAGE:6.1.0
  
  ENV CONNECT_PLUGIN_PATH=&quot;/usr/share/java,/usr/share/confluent-hub-components&quot;
  
  RUN confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.4.0
  </code></pre>
  <pre><code>docker exec 51e32e20b292 bash -c 'echo $CONNECT_PLUGIN_PATH'                                           
  shows : /usr/share/java,/usr/share/confluent-hub-components
  </code></pre>
  <pre><code>[appuser@88db8385b575 ~]$ ls -la /usr/share/confluent-hub-components/
  total 20
  drwxr-xr-x 1 appuser appuser 4096 Mar 26 21:19 .
  drwxr-xr-x 1 root    root    4096 Feb  4 21:10 ..
  drwxr-xr-x 6 appuser appuser 4096 Mar 26 18:00 confluentinc-kafka-connect-datagen
  </code></pre>
  <pre><code>[appuser@88db8385b575 ~]$ ls -la /usr/share/confluent-hub-components/confluentinc-kafka-connect-datagen/
  total 28
  drwxr-xr-x 6 appuser appuser 4096 Mar 26 18:00 .
  drwxr-xr-x 1 appuser appuser 4096 Mar 26 21:19 ..
  drwxr-xr-x 2 appuser appuser 4096 Mar 26 18:00 assets
  drwxr-xr-x 4 appuser appuser 4096 Mar 26 18:00 doc
  drwxr-xr-x 2 appuser appuser 4096 Mar 26 18:00 etc
  drwxr-xr-x 2 appuser appuser 4096 Mar 26 18:00 lib
  -rw-r--r-- 1 appuser appuser 1380 Mar 26 18:00 manifest.json
  </code></pre>
  <p>Docker logs :</p>
  <pre><code>docker logs 51e32e20b292 | grep &quot;DatagenConnector&quot;  
          
      &quot;connector.class&quot;: &quot;io.confluent.kafka.connect.datagen.DatagenConnector&quot;,
      &quot;connector.class&quot;: &quot;io.confluent.kafka.connect.datagen.DatagenConnector&quot;,
  </code></pre>