title: Kafka console producer Error in Hortonworks HDP 2.3 Sandbox
body: <p>I have searched it all over and couldn't find the error.
  I have checked <a href="https://stackoverflow.com/questions/27115709/exception-running-kafka-console-producer-sh-0-8-1-1">This Stackoverflow Issue </a>but it is not the problem with me</p>
  
  <ol>
  <li><p>I have started a zookeeper server</p>
  
  <p><a href="https://i.stack.imgur.com/zSxCG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zSxCG.png" alt=""></a></p></li>
  </ol>
  
  <p>Command to start server was</p>
  
  <pre><code> bin/zookeeper-server-start.sh config/zookeeper.properties
  </code></pre>
  
  <ol start="2">
  <li><p>Then I SSH into VM by using Putty and started kafka server using</p>
  
  <p>$ bin/kafka-server-start.sh config/server.properties</p></li>
  <li><p>Then I created Kafka Topic and when I  <strong>list</strong> the topic, it appears.
  <a href="https://i.stack.imgur.com/1n156.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1n156.png" alt="enter image description here"></a></p></li>
  <li>Then I opened another putty and started kafka-console-producer.sh and typed any message (even enter) and get this long repetitive exception.
  <a href="https://i.stack.imgur.com/VHjrw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VHjrw.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/pMtOL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pMtOL.png" alt="enter image description here"></a></li>
  </ol>
  
  <p>Configuration files for zookeeper.properties, server.properties, kafka-producer.properties are as following (respectively)
  <a href="https://i.stack.imgur.com/OWv1y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWv1y.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/hfwvh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hfwvh.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/sGyA2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sGyA2.png" alt="enter image description here"></a></p>
  
  <p>The version of Kafka i am running is 8.2.2. something as I saw it in kafka/libs folder.
  <strong>P.S.</strong> I get no messages in consumer.</p>
  
  <p>Can any body figure out the problem?
  The tutorial I was following was [This][9]</p>
  
  <p><a href="https://i.stack.imgur.com/hfwvh.png" rel="nofollow noreferrer">8</a><a href="http://%60http://www.bogotobogo.com/Hadoop/BigData_hadoop_Zookeeper_Kafka_single_node_single_broker_cluster.php%60" rel="nofollow noreferrer">http://%60http://www.bogotobogo.com/Hadoop/BigData_hadoop_Zookeeper_Kafka_single_node_single_broker_cluster.php%60</a></p>