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.

Reply via email to