Hello @Robson Soares ,
Here is the detailed response provided by the internal team:
I ran the scenario and some things came up.
- The guide that you are usin`g is starter code is dated. It relies on Spark 2.4, it’s not targeted to Synapse; so some instructions are misleading.
- It states the you should use kafkashaded.org.apache.kafka.common.security.plain.PlainLoginModule
instead of
org.apache.kafka.common.security.plain.PlainLoginModule, in the
sasl_jaas_configvariable, claiming it’s a Databricks only library. That is incorrect, this class is part of the
karfka-clients-2.4.1.5.0.jar` we ship in Synapse Spark 3.1 runtime. Here is the class reference. - Also some options in the readStream command are dated and should be as follows:
.option("kafka.sasl.mechanism", "PLAIN")
.option("kafka.security.protocol", "SASL_SSL")
.option("kafka.sasl.jaas.config", sasl_jaas_config)
Could you please try the above and do let us know the status.
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators