title: testing kafka consumer and producer failed on connection
body: <p>I have been trying to test a kafka installation and using the guide created a producer and consumer. When trying to retrieve a message I get the following error:</p>
  
  <pre><code> WARN Session 0x0 for server null, unexpected error, closing socket connection and 
   attempting reconnect (org.apache.zookeeper.ClientCnxn)
   java.net.ConnectException: Connection refused
      at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
   [2014-03-04 18:01:20,628] INFO Terminate ZkClient event thread. (org.I0Itec.zkclient.ZkEventThread)
   [2014-03-04 18:01:21,315] INFO Opening socket connection to server kafka-test/192.xxxxxx.110:2182 (org.apache.zookeeper.ClientCnxn)
   [2014-03-04 18:01:21,418] INFO Session: 0x0 closed (org.apache.zookeeper.ZooKeeper)
   Exception in thread "main" org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 6000
      at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:880)
      at org.I0Itec.zkclient.ZkClient.&lt;init&gt;(ZkClient.java:98)
      at org.I0Itec.zkclient.ZkClient.&lt;init&gt;(ZkClient.java:84)
      at kafka.consumer.ZookeeperConsumerConnector.connectZk(ZookeeperConsumerConnector.scala:151)
      at kafka.consumer.ZookeeperConsumerConnector.&lt;init&gt;(ZookeeperConsumerConnector.scala:112)
      at kafka.consumer.ZookeeperConsumerConnector.&lt;init&gt;(ZookeeperConsumerConnector.scala:123)
      at kafka.consumer.Consumer$.create(ConsumerConnector.scala:89)
      at kafka.consumer.ConsoleConsumer$.main(ConsoleConsumer.scala:178)
      at kafka.consumer.ConsoleConsumer.main(ConsoleConsumer.scala)
   [2014-03-04 18:01:21,419] INFO EventThread shut down (org.apache.zookeeper.ClientCnxn)
  </code></pre>