title: kafka-console-producer.sh Error: Could not find or load main class kafka.tools.ConsoleProducer
body: <p>Just installed a Docker image of spotify/kafka. sudo docker ps:</p>
  
  <pre><code>82c411a52a38        spotify/kafka                    "supervisord -n"         26 minutes ago      Up 26 minutes       0.0.0.0:2181-&gt;2181/tcp, 0.0.0.0:9092-&gt;9092/tcp
  </code></pre>
  
  <p>Also, downloaded kafka binaries separately, so I could use the kafka-console-producer.sh to test the install, as per:  <code>https://hub.docker.com/r/spotify/kafka/</code></p>
  
  <p>I have the following ENV vars set:  </p>
  
  <p>KAFKA=event-ora-dev:9092
  ZOOKEEPER=event-ora-dev:2181</p>
  
  <p>When I run the command <code>./kafka-console-producer.sh --broker-list $KAFKA --topic test</code>  </p>
  
  <p>I get this error:  </p>
  
  <pre><code>Error: Could not find or load main class kafka.tools.ConsoleProducer
  </code></pre>
  
  <p>Assuming, that kafka.tools.ConsoleProducer is a java class, being invoked by kafka-console-producer.sh shell script - where should I be looking for this java class?</p>