Spark Diagnostic Emitter Not Working with Event Hub

Raut, Saurabh J 0 Reputation points
2025-01-15T05:22:38.2833333+00:00

I am following this documentation to send logs and metrics for Spark applications running on Synapse Spark pools to Event Hub using Azure Key Vault (AKV).

I am using the configuration below and have added the Service Principal secret to AKV. I also tried putting the connection string in the AKV secrets, but I receive an error:
Your notebook connection has closed unexpectedly. To re-establish the connection, run the notebook again. Diagnostic information: kernel_connection_closed (70az88)

spark.synapse.diagnostic.emitters MyDestination1
spark.synapse.diagnostic.emitter.MyDestination1.type AzureEventHub
spark.synapse.diagnostic.emitter.MyDestination1.categories Log,EventLog,Metrics
spark.synapse.diagnostic.emitter.MyDestination1.secret.keyVault <...>
spark.synapse.diagnostic.emitter.MyDestination1.secret.keyVault.secretName <...>
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,157 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rehan Surya 0 Reputation points
    2025-01-15T05:26:26.8266667+00:00

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.