title: Leader brokers without a matching listener error in kafka
body: <p>What is the meaning of this kafka error ?</p>
  
  <blockquote>
    <p>[2018-08-22 11:40:49,429] WARN [Consumer clientId=consumer-1,
    groupId=console-consumer-62114] 1 partitions have leader brokers
    without a matching listener, including [topicname-0]
    (org.apache.kafka.clients.NetworkClient)</p>
  </blockquote>
  
  <p>I'm getting it when running:</p>
  
  <pre><code>./kafka-console-consumer.sh --topic topicname --bootstrap-server localhost:9094
  </code></pre>
  
  <p>And I'm getting some errors inside a golang program when trying to read this topic:</p>
  
  <blockquote>
    <p>2018/08/22 11:44:12 ReadOffsetWithRetryOnError conn error: &lt; dial tcp
    :0: connect: connection refused >  kafka0:9094  topic: 0</p>
  </blockquote>
  
  <p>The code snippet:</p>
  
  <pre><code>conn, err := kafka.DialLeader(context.Background(), "tcp", ip, getTopic(topic), 0)
                  if err != nil {
                      log.Println("ReadOffsetWithRetryOnError conn error: &lt;", err, "&gt; ", ip, " topic:", topic)
                  }
  </code></pre>
  
  <p>This is quite weird because, when reading on different topic it is working fine at the same time.</p>
  
  <p>More error logs:</p>
  
  <blockquote>
    <p>/kafka-topics.sh --describe --zookeeper localhost:2181 --topic
    topicname Topic:indexBlock        PartitionCount:1<br>
    ReplicationFactor:1     Configs:
            Topic: topicname       Partition: 0    Leader: -1      Replicas: 1002  Isr: 1002</p>
  </blockquote>