I am looking to connect Azure data bricks to Event hub and read it through splunk . Initially I was able to send a test message and was able to receive the events in splunk(It was possible using scala as per https://docs.microsoft.com/en-us/azure/databricks/scenarios/databricks-stream-from-eventhubs --> Send tweets to event hubs). Now I am trying to implement the same using python using the reference from https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-python-get-started-send ---> Send Event . When I try to pass the object-parameters, it throws an error like unable to import from Azure Event hubs
Can anyone help me understand how can I connect Azure databricks with Azure Eventhubs and include sending object -parameters ?
PS : I have added the necessary libraries required to the cluster as below :
- com.microsoft.azure:azure-eventhubs-spark_2.12:2.3.18
- azure-eventhubs-spark_2.11
- com.microsoft.azure:azure-eventhubs-spark_2.11:2.3.22
- org.apache.spark:spark-avro_2.12:3.1.1
I have checked it with different versions of libraries too.
Can someone help me with the syntax part on how to pass the object parameters in the format of key value pairs ?