Support Questions

Find answers, ask questions, and share your expertise

Who agreed with this topic

Error when sending message to topic in Kafka

avatar
Contributor

/vol_01/cloudera/parcels/KAFKA-2.0.0-1.kafka2.0.0.p0.12/bin/kafka-console-producer --broker-list localhost:9092 --topic t1
Hi Hello
[2016-05-29 01:24:02,381] ERROR Error when sending message to topic t1 with key: null, value: 8 bytes with error: Failed to update metadata after 60000 ms. (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)

 

In server.properties file, i have changed the added below lines:

 

advertised.host.name=localhost

advertised.port=2181

 

In zookeeper.properties file, i have changed the below lines:

 

dataDir=/vol_01/lib/zookeeper  (as per the settings)
clientPort=2181
maxClientCnxns=0

 

Who agreed with this topic