[ 
https://issues.apache.org/jira/browse/KAFKA-7329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759751#comment-16759751
 ] 

Axel Rose edited comment on KAFKA-7329 at 2/4/19 2:17 PM:
----------------------------------------------------------

same here, using dockerized kafka
{quote}$ docker-compose -f docker-compose-single-broker.yml up
 $ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 
1 --partitions 1 --topic test
 $ bin/kafka-topics.sh --list --zookeeper localhost:2181
 test
 $ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
 >abc
 [2019-02-04 11:26:42,769] WARN [Producer clientId=console-producer] Error 
while fetching metadata with correlation id 1 : \{test=LEADER_NOT_AVAILABLE} 
(org.apache.kafka.clients.NetworkClient)
 [2019-02-04 11:26:42,870] WARN [Producer clientId=console-producer] Error 
while fetching metadata with correlation id 2 : \{test=LEADER_NOT_AVAILABLE} 
(org.apache.kafka.clients.NetworkClient)
{quote}

It's ok though if I used a downloaded release

The difference using a different test

OK:
{quote}
~/w/kafka_2.11-2.1.0 ❯❯❯ bin/kafka-topics.sh --describe --zookeeper 
localhost:2181 --topic test
Topic:test      PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: test     Partition: 0    Leader: 0       Replicas: 0     Isr: 0
{quote}

NOT ok with dockerized container:
{quote}
~/w/kafka_2.11-2.1.0 ❯❯❯ bin/kafka-topics.sh --describe --zookeeper 
localhost:2181 --topic test
Topic:test      PartitionCount:1        ReplicationFactor:1     Configs:
        Topic: test     Partition: 0    Leader: 1001    Replicas: 1001  Isr: 
1001
{quote}



was (Author: axelrose):
same here, using dockerized kafka
{quote}$ docker-compose -f docker-compose-single-broker.yml up
$ bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 
1 --partitions 1 --topic test
$ bin/kafka-topics.sh --list --zookeeper localhost:2181
test
$ bin/kafka-console-producer.sh --broker-list localhost:9092 --topic test
>abc
[2019-02-04 11:26:42,769] WARN [Producer clientId=console-producer] Error while 
fetching metadata with correlation id 1 : \{test=LEADER_NOT_AVAILABLE} 
(org.apache.kafka.clients.NetworkClient)
[2019-02-04 11:26:42,870] WARN [Producer clientId=console-producer] Error while 
fetching metadata with correlation id 2 : \{test=LEADER_NOT_AVAILABLE} 
(org.apache.kafka.clients.NetworkClient)
{quote}

> Continuous warning message of LEADER_NOT_AVAILABLE
> --------------------------------------------------
>
>                 Key: KAFKA-7329
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7329
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer, producer 
>    Affects Versions: 2.0.0
>         Environment: macOS - High Sierra; Java 1.8
>            Reporter: Vasudevan Seshadri
>            Priority: Major
>
> I am running kafka version kafka_2.11-2.0.0. I have followed the instruction 
> mentioned in quick start and was able to run zookeeper and server (broker 
> with id=0) without any issues. Note: I have NOT changed any config file 
> entries. Everything is same as downloaded by zip file
> I also have created two topics as "test" and "topic_test"
> Issue: Whenever I run producer or consumer and try to publish or consume on 
> any of the above topics, following error is thrown continuously/non-stop: 
> [2018-08-22 22:36:34,380] WARN [Producer clientId=console-producer] Error 
> while fetching metadata with correlation id 1 : 
> \{topic_test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
> [2018-08-22 22:36:34,474] WARN [Producer clientId=console-producer] Error 
> while fetching metadata with correlation id 2 : 
> \{topic_test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
> [2018-08-22 22:36:34,579] WARN [Producer clientId=console-producer] Error 
> while fetching metadata with correlation id 3 : 
> \{topic_test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
> [2018-08-22 22:36:34,685] WARN [Producer clientId=console-producer] Error 
> while fetching metadata with correlation id 4 : 
> \{topic_test=LEADER_NOT_AVAILABLE} (org.apache.kafka.clients.NetworkClient)
> Am I missing any settings?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to