• Register
0 votes
2.6k 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??
6 5 3
7,540 points

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. :)

9 7 4
38,600 points

Related questions

0 votes
1 answer 15 views
15 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
1 vote
1 answer 192 views
192 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 2 views
2 views
Problem Can someone help me with this problem, "git://git.apache.org/hadoop-common.git?"
asked 6 days ago salim1 34.8k points
0 votes
1 answer 5 views
5 views
Problem: I am having hard time to solve the problem. Help is much appreciated.
asked Apr 2 salim1 34.8k points
0 votes
1 answer 19 views
19 views
Problem: org.apache.catalina.lifecycleexception: failed to start component [standardserver[8005]]
asked Feb 23 Muneeb Saadii 127k points
0 votes
1 answer 23 views
23 views
Problem: org.apache.catalina.lifecycleexception: failed to start component [connector[http/1.1-8080]]
asked Feb 18 Lucky Guy 1.5k points
0 votes
1 answer 109 views
109 views
Problem : Getting bellow error because of Maven Compiler Plugin failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
asked Nov 7, 2019 peterlaw 6.9k points
0 votes
1 answer 2 views
2 views
Problem: What caused the error, " failed: execution error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.teztask " ?
asked 1 day ago salim1 34.8k points
0 votes
1 answer 17 views
17 views
Problem: warning:unable to find optional library: org.apache.http.legacy
asked Feb 21 charles mathews 5.5k points
0 votes
1 answer 34 views
34 views
Problem: org.apache.jasper.jasperexception: unable to compile class for jsp
asked Feb 13 Shovo210 13.3k points