title: Kafka consumer not able to consume messages using bootstrap server name
body: <p>I am facing an issue while consuming message using the bootstrap-server i.e. Kafka server. Any idea why is it not able to consume messages without zookeeper?</p>
  
  <ul>
  <li>Kafka Version: kafka_2.11-1.0.0</li>
  <li>Zookeeper Version: kafka_2.11-1.0.0</li>
  <li>Zookeeper Host and port: zkp02.mp.com:2181</li>
  <li>Kafka Host and port: kfk03.mp.com:9092</li>
  </ul>
  
  <p>Producing some message:</p>
  
  <pre><code>[kfk03.mp.com ~]$ /bnsf/kafka/bin/kafka-console-producer.sh --broker-list kfk03.mp.com:9092 --topic test
  &gt;hi
  &gt;hi
  </code></pre>
  
  <p>Consumer not able to consume messages if I give <code>–-bootstrap-server</code>:</p>
  
  <pre><code>[kfk03.mp.com ~]$
  /bnsf/kafka/bin/kafka-console-consumer.sh --bootstrap-server kfk03.mp.com:9092 --topic test --from-beginning
  </code></pre>
  
  <p>Consumer able to consume messages when <code>--zookeeper</code> server is given instead of <code>--bootstrap-server</code> -: </p>
  
  <pre><code>[kfk03.mp.com ~]$ /bnsf/kafka/bin/kafka-console-consumer.sh --zookeeper zkp02.mp.com:2181 --topic test --from-beginning
  
  Using the ConsoleConsumer with old consumer is deprecated and will be removed in a future major release. Consider using the new consumer by passing [bootstrap-server] instead of [zookeeper].
  
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  hi
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  {"properties": {"messageType": "test", "sentDateTime": "2018-02-25T21:46:00.000+0000"}, "name": "Uttam Anand", "age": 29}
  hi
  hi
  uttam
  hi
  hi
  hi
  hello
  hi
  ^CProcessed a total of 17 messages
  </code></pre>