• Register
0 votes
3k views

Problem :

I am trying to produce the message in kafka, but i am getting the following error :

Error when sending message to topic nil_PF1_P1 with key: null, value: 2 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
Error when sending message to topic nil_PF1_P1 with key: null, value: 5 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
Any suggestions on this issue??
7.5k points
edited by

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I also had the same issue in recent past with confluent_kafka 0.9.2 (0x90200) and librdkafka 0.9.2 (0x90401). In my case, the issue was that I specified the wrong broker port number as follows:

$ kafka-console-producer.sh --broker-list localhost:9092 --topic tutorialpoint-basic-ops-01

And my brokers port number was 9094 as follows:

$ cat server-02.properties

broker.id=2

port=9094

log.dirs=/tmp/kafka-example-logs-02

zookeeper.connect=localhost:2181

But the 9092 port was not open (netstat -tunap), it took 60s for kafka-console-producer.sh to raise an error. Looks like this tool needs a fix to:

·         fail faster

·         with a more explicit error message.

OR

If by any chance you are running hortonworks cluster then you must check the listening port in ambari.

In my case the 9092 was not my port at all. When I went to ambari and checked there I found the listening port was set to 6667 I changed it and it worked for me. :)

38.6k points
edited by

Related questions

0 votes
1 answer 49 views
49 views
Problem: i need help ! if anybody faced this situation please give me the sulution , Org.apache.kafka.common.errors.timeoutexception: failed to update metadata after 60000 ms.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 8 views
8 views
Problem : It is possible to delete a kafka topic.
asked Jul 22 Siam55 110k points
0 votes
1 answer 20 views
20 views
Problem: Support is needed because I have been unable to find a solution : Kafka has push based consumer where data is pushed from broker to consumer
asked Jun 16 nila 121k points
0 votes
1 answer 2 views
2 views
Problem: What's the reason for rebalancing where all the consumers in the group are up?
asked Jun 25 Isac Christiaan 103k points
0 votes
1 answer 15 views
15 views
Problem : There was an error creating a new topic: 8.
asked Jul 13 Isac Christiaan 103k points
0 votes
1 answer 11 views
11 views
Problem: Working on this but no luck, need help : There was an error creating a new topic: 21.
asked May 30 Aurelia Maja 78.4k points
0 votes
1 answer 229 views
229 views
Problem: When trying to send message I get sun.security.krb5.KrbException: no supported default etypes for default_tkt_enctypes. In my krb5.conf default_tkt_enctypes is defined to aes256-cts-hmac-sha1-96. I have tried to comment out that line in krb5.conf but then I get sun.security.krb5.Asn1Exception: Identifier doesn't match expected value (906). Any ideas how to fix this?
asked May 2 sumaiya simi 43.9k points
0 votes
1 answer 456 views
456 views
Problem: I am not able to run a Apache Kafka service due to a failure while trying to start a Zookeeper instance. I have downloaded and tried it with all 3 availabe downloads at the official site. (binarys and source) When i try to start zookeeper with ./bin/ ... virtual machine using Ubuntu 16.04 it works. Unfortunatly, all i found regarding this problem, was for Windows. Thank you for any help.
asked Apr 26 sumaiya simi 43.9k points
1 vote
1 answer 294 views
294 views
Problem : Currently I am using Hadoop 2.7.1 and apache-hive-1.2.1 versions installed on my ubuntu 14.0. 1. Why below error is occurring ? 2. Do I need to do metastore installation ? 3. When we are typing the hive command on terminal how the ... Still the above error persist #HIVE home directory configuration export HIVE_HOME=/usr/local/hive/apache-hive-1.2.1-bin export PATH="$PATH:$HIVE_HOME/bin"
asked Dec 12, 2019 alecxe 7.5k points
0 votes
1 answer 11 views
11 views
Problem Can someone help me with this problem, "git://git.apache.org/hadoop-common.git?"
asked Apr 6 salim1 60.6k points