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]
Under Ambari server>Kafka>config> Kafka Broker> Listeners can add the security protocol as: SASL_SSL://localhost:<port>
Since this is a one way SSL communication between client-server, ensure to have enabled the property ssl.client.auth=none. This means that a client authentication is not required. By default this property is set toNone. This can be double checked fromAmbari console>Kafka>Configs. The same can be searched using the filter text box at the top right of the service screen.
Client Side
Create a fileclient.propertieswith the following content:
ssl.truststore.location=<pathToTrustStore> // This file must contain server rootCA
ssl.truststore.password=<trustStore password>
Get a valid Kerberos ticket and execute new producer/consumer API as follows: