[
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 10:32 AM:
-----------------------------------------------------------
same here, using dockerized kafka
{{ }}
{{ $ 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)}}
was (Author: axelrose):
same here, using dockerized kafka
```
$ 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)```
> 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)