title: Kafka - Docker - Error when sending message from Host to Container (Batch Expired)
body: <p>I'm having a difficult time troubleshooting, what should be a simple kafka-issue.</p>
  
  <p>I'm trying to publish a few messages from <code>kafak-console-producer</code>.  When I type 'hi' I get:</p>
  
  <pre><code>/opt/kafka/bin/kafka-console-producer.sh --topic test --broker-list 172.17.0.21:9092
  hi
  [2016-01-25 12:56:19,839] ERROR Error when sending message to topic test with key: null, value: 2 bytes with error: Batch Expired (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
  </code></pre>
  
  <p>I don't seem to be able to find any kafka-log4j-logs...</p>
  
  <p>I'm running the kafka server the way it is described in the <a href="http://kafka.apache.org/documentation.html#quickstart_startserver">quick-start</a></p>
  
  <p>I can create the topic &amp; describe it.</p>
  
  <p>One note which maybe important is that the kafka &amp; zookeeper are running in a docker-container (<code>172.17.0.21</code>) I'm creating the topic and sending messages from the host.</p>
  
  <hr>
  
  <p>Please note the both the (kafka-server) 9092 &amp; (zk) 2181 are open and accessible from the host, I've confirmed this using netstat &amp; telnet.</p>