Troubleshooting
Symptom
Encountered the below error while setting up SASL mechanism SCRAM-SHA-512 to connect securely to Kafka
“ Error getting metadata for topic '<>' from broker 'my-kafka-cluster-kafka-external-bootstrap-event-automation.apps.amsocpprd.os.net.ibm.com:443' due to error: org.apache.kafka.common.KafkaException: Failed to construct kafka consumer “
Resolving The Problem
Along with the Kafka properties that we set by referring to this document , we also need to follow the below additional steps
Select the Kafka stage → Under 'Security' tab select SASL mechanism as “GSSAPI”.
Select the ‘Kafka’ tab and add the below config under Kafka configuration property :
Name | Value |
security.protocol | GSSAPI |
sasl.mechanism | SCRAM-SHA-512 |
sasl.jaas.config | org.apache.kafka.common.security.plain.PlainLoginModule required \ username="<user name for JAAS>"\ password="<password>"; |
ssl.truststore.location | <full path to the client truststore jks file> |
ssl.truststore.password | <password> |
E.g :
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
15 March 2025
UID
ibm17186189
