Firstly, we are trying to send the Kafka messages using this JMeter for sasl_ssl enabled Kafka. So, for that purpose we have created a thread group(https://i.stack.imgur.com/H3OLH.png) in that we have added Kafka producer sampler(https://i.stack.imgur.com/FBa2k.png), Kafka producer config(https://i.stack.imgur.com/ShTrq.png).
- In Kafka producer sampler I have added the variable name, Kafka topic and the payload message we want to send.
- In Kafka producer config we have added Kafka broker i.e., host name and added the sasl.jaas.config and its value.
- Now when we started running the JMeter we are getting the error like failed to load SSL keystore of type JKS. (https://i.stack.imgur.com/krfFo.png)
Have you tried to read documentation which states:
You need to modify the properties to point to your keystore and make sure that the keystore contains the certificate required for secure connection to Kafka, the certificate can be added either using keytool or OpenSSL
More information: How to Do Kafka Testing With JMeter