Support Questions

Find answers, ask questions, and share your expertise

Kafka with SSL enabled - Not able to publish messages (org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms)

avatar
Expert Contributor

hi - I've enabled SSL for Kafka & i'm trying to publish messages using console Producer

Error is as shown below, any ideas ?

/usr/hdp/2.5.3.0-37/kafka/bin/kafka-console-producer.sh --broker-list nwk2-bdp-kafka-05.gdcs-qa.apple.com:6668,nwk2-bdp-kafka-04.gdcs-qa.apple.com:6668,nwk2-bdp-kafka-06.gdcs-qa.apple.com:6668 --topic sslTopic1 --producer.config /tmp/ssl-kafka/client-ssl.properties --security-protocol SSL

hi

[2017-07-25 19:10:54,750] ERROR Error when sending message to topic sslTopic1 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.

client-ssl.properties :

security.protocol=SSL
ssl.truststore.location=/tmp/ssl-kafka/client.truststore.jks
ssl.truststore.password=changeit
ssl.keystore.location=/tmp/ssl-kafka/client.keystore.jks
ssl.keystore.password=changeitssl.key.password=changeit
ssl.enabled.protocols=TLSv1.2,TLSv1.1,TLSv1ssl.keystore.type=JKS
ssl.truststore.type=JKS
2 REPLIES 2

avatar
Expert Contributor

Attaching server.propertiesserverproperties.txt

avatar
Expert Contributor

@mqureshi, @Daniel Kozlowski - looping you in, any ideas ?