question

nadinebenharrath-0669 avatar image
0 Votes"
nadinebenharrath-0669 asked PRADEEPCHEEKATLA-MSFT commented

how can i send events from json file to eventhub

Hi everyone , i'm beginner and i want to know how can i send events from json file to event hub , in fact , my script sends empty files , please help ?
i also have some plots for requests but i have nothing for messages ?? can someone help me please
thank you




[1]: /answers/storage/attachments/84909-der.png

[2]: /answers/storage/attachments/85021-12.png

[3]: /answers/storage/attachments/84990-147.png

azure-event-hubs
der.png (82.7 KiB)
12.png (28.8 KiB)
147.png (15.8 KiB)
· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @nadinebenharrath-0669,

Welcome to the Microsoft Q&A platform.

Could you please share the code which you are trying to send events from json file to event hub? (You can try to edit the question and add the code in the question by clicking on code sample button)

Meanwhile, you can checkout SO thread addressing similar issue and Send events to or receive events from event hubs by using Python (azure-eventhub).


0 Votes 0 ·

i put the .png files containing the code and the output , can you check them please ??
thank you

0 Votes 0 ·

Hello @nadinebenharrath-0669,

I saw the .png file contains the code, if you share the code - it would be easy to copy and try the same code from our end.

0 Votes 0 ·
Show more comments

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
1 Vote"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @nadinebenharrath-0669,

Glad to know your issue has been resolved.

To resolve this issue, I would request you to check the Databricks runtime version.

It seems that your Runtime includes Scala 2.12 but your package is from scala 2.11

Try installing this: com.microsoft.azure:azure-eventhubs-spark_2.12:2.3.17 to resolve the issue.

Hope this helps. Do let us know if you any further queries.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you so much , it works

0 Votes 0 ·

Hello @nadinebenharrath-0669,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·