Relative Content

Tag Archive for apache-sparkpysparkspark-streamingazure-synapseazure-eventhub

EventHub spark structured streaming using certificate authentication

I want to use structured streaming for EventHub message consumption using pyspark in Azure Synapse and I was pointed to this project https://github.com/alexott/databricks-playground/tree/main/kafka-eventhubs-aad-auth. Could someone guide me if this could be modified to use certificate instead of secret authentication?, I tried to modify the ServicePrincipalCredentialsAuth class shown below to use ClientCredentialFactory.createFromCertificate but I am not able to make it work.