Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Kafka fails to receive message via producer

avatar
Master Guru

On hdp 2.5 I am running simple test to create message on a kafka topic test 1 and it fails. I have 1 broker and running this on broker node.

[kafka@sunman0 bin]$ ./kafka-console-producer.sh --broker-list localhost:9092 --topic test1
jump
[2016-11-09 21:21:45,184] ERROR Error when sending message to topic test1 with key: null, value: 4 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

Any ideas?

1 ACCEPTED SOLUTION

avatar
Master Guru

I found the issue. 9092 was not my port. I went to ambari and found the listening port was set to 6667

View solution in original post

1 REPLY 1

avatar
Master Guru

I found the issue. 9092 was not my port. I went to ambari and found the listening port was set to 6667