Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Databricks - StreamingQueryException #115

Open
nph4rd opened this issue Apr 14, 2023 · 0 comments
Open

Databricks - StreamingQueryException #115

nph4rd opened this issue Apr 14, 2023 · 0 comments

Comments

@nph4rd
Copy link

nph4rd commented Apr 14, 2023

Hi - I'm trying to read from Kafka from Databricks, as outlined here.

At my organisation we can only connect via IAM, so I added the following options:

  .option("kafka.security.protocol", "SASL_SSL")
  .option("kafka.sasl.mechanism", "AWS_MSK_IAM")
  .option("kafka.sasl.jaas.config", "software.amazon.msk.auth.iam.IAMLoginModule required;")
  .option("kafka.sasl.client.callback.handler.class", "software.amazon.msk.auth.iam.IAMClientCallbackHandler")

and uploaded the JAR file for the 1.1.6 version of aws-msk-iam-auth to Databricks.

This resulted in the following error message:

StreamingQueryException: Query[...] terminated with exception: org/apache/kafka/common/security/auth/AuthenticateCallbackHandler 

I found a potential patch here.

However, it would be far from ideal to work with a patched forked of this library. Is there anything I can do on my side to make the connection work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant