Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-20-2016 07:50 AM
I am trying to run kafka-console-producer.sh script on a kerberized HDP 2.4 sandbox with Kafka 0.9. I have created a topic and provided user permissions to the topic.
Below is the command I am using to start the producer:
./kafka-console-producer.sh --topic test-topic --broker-list sandbox.hortonworks.com:6667 --security-protocol PLAINTEXTSASL --new-producer
Below is the error I get when I try to produce something:
ERROR Error when sending message to topic test-topic with key: null, value: 8 bytes with error: Failed to update metadata after 60000 ms. (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
It works fine when I don't use the new-producer, but I need to use the new producer API.
Created 06-20-2016 06:11 PM
For new producer api, try increasing the metadata.fetch.timeout.ms in producer config and also socket.timeout.ms
Created 06-20-2016 06:11 PM
For new producer api, try increasing the metadata.fetch.timeout.ms in producer config and also socket.timeout.ms
Created 06-21-2016 11:15 AM
I changed the above properties to 600000 ms, still the issue exists.
Created 06-22-2016 12:07 AM
What is your config/server.properties and config/producer.properties? Anything in zookeeper logs?
Created 06-29-2016 06:34 PM
We had same issue and increasing time out values worked.