title: No Brokers Available error when trying to connect to Kafka
body: <p>I have a very strange problem when trying to connect locally to Kafka 0.10.0.0 using Python client on CentOS.</p>
  
  <p>My connection options are pretty simple and default:</p>
  
  <pre><code>kafka_consumer = kafka.KafkaConsumer(
          bootstrap_servers=['localhost:9092'],
          client_id="python-test-consumer"
      )
  </code></pre>
  
  <p>When I manually set <strong>listeners</strong> option in Kafka's server.properties file like:</p>
  
  <pre><code>listeners=PLAINTEXT://localhost:9092
  </code></pre>
  
  <p>I get the kafka.errors.NoBrokersAvailable despite the fact that I can still easily connect to Kafka broker server with curl or other linux stuff.</p>
  
  <p>No <strong>advertised.listeners</strong> or other deprecated advertised options help to solve the problem. Thus, the only state of configuration which is working is one without listeners. What is certainly unacceptable, because we need to setup local cluster somehow.</p>
  
  <p>It seems that solution for this silly problem is simple and is wondering around, but we couldn't figure it ourselves.</p>