Skip to content

setup MKS ( managed kafka ) consumer for Quarkus

0

previusly i am using self hosted kafka recestly I have moved to mks and I'm facing issue to setup I am authentication for my quarkus application I'm able to make it work on python an springboot can I get some reference on the application.properties how can I setup it

I'm using <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-messaging-kafka</artifactId> </dependency>

1 Answer
0

Please check the documentation.

Specifically, for Java you would need to include JARs with auth classes, and then add following properties to your kafka client/app:

security.protocol=SASL_SSL
sasl.mechanism=AWS_MSK_IAM
sasl.jaas.config=software.amazon.msk.auth.iam.IAMLoginModule required;
sasl.client.callback.handler.class=software.amazon.msk.auth.iam.IAMClientCallbackHandler

Make sure the IAM role you will be using to run the app has policies for accessing MSK cluster.

Same documentation include all you need to know for Python apps as well. if you face specific issue, please attach more details, like what you are trying to run, what errors/exceptions you are facing, etc.

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.