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

Azure EventHub - PySpark Failed to configure SaslClientAuthenticator works when using Confluent cloud #682

Open
ozkary opened this issue Nov 10, 2023 · 0 comments

Comments

@ozkary
Copy link

ozkary commented Nov 10, 2023

Hi,

A Python and CSharp producer/consumers are able to connect to Azure EventHub and send messages. The problem is when adding an application with Spark streaming (pyspark). All the configurations and dependencies look to be correct.

The Spark app runs successfully when using Confluent Cloud.

Confluent:

sasl.mechanisms=PLAIN
sasl.username=*****

Azure EventHub:

security.protocol=SASL_SSL
sasl.mechanism=PLAIN
sasl.username=$ConnectionString
sasl.password=Endpoint=*********

SASL:
sasl_config = f'org.apache.kafka.common.security.plain.PlainLoginModule required serviceName="kafka" username="{settings["sasl.username"]}" password="{settings["sasl.password"]}";'

Bug Report:

The Spark (pyspark) application fails to authenticate with the Azure EventHub due to a Sasl process.

  • Actual behavior
    The app is not able to authenticate. These errors are shown:

    • Caused by: org.apache.kafka.common.KafkaException: org.apache.kafka.common.errors.SaslAuthenticationException: Failed to configure SaslClientAuthenticator

    • Caused by: org.apache.kafka.common.errors.SaslAuthenticationException: Failed to configure SaslClientAuthenticator

  • Expected behavior

The application should be able to communicate with the eventhub.

  • Spark version

3.3.2

  • spark-eventhubs artifactId and version

com.microsoft.azure:azure-eventhubs-spark_2.12:2.3.22

Regards

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