If you get the following error:
notebook:25: error: Static methods in interface require -target:jvm-1.8
val messageData = EventData.create(message.getBytes("UTF-8"))
notebook:19: error: Static methods in interface require -target:jvm-1.8
val eventHubClient = EventHubClient.create(connStr.toString(), pool)
Solution: is to change cluster's "Databricks Runtime Version" to a higher version such as Runtime: 6.0.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@soheil-moosavi-accenture Thanks much for sharing your findings. This information is very helpful for those who come across this issue. Appreciate for taking time and sharing your insights.
Since there is no action required at the moment I will go head and close this issue. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.
Thank you.
@soheil-moosavi-accenture Thanks much for sharing your findings. This information is very helpful for those who come across this issue. Appreciate for taking time and sharing your insights.
Since there is no action required at the moment I will go head and close this issue. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.
Thank you.
I recommend updating this tutorial with a newer version of Databricks Run time, since the V5.2 is no longer supported.
@soheil-moosavi-accenture We have assigned the issue to the content author for further review and update the document as appropriate. Thanks much reporting this to us.
@lenadroid Could you please have a look at the feedback from @soheil-moosavi-accenture. thanks!
@mamccrea FYI
Thank you for the feedback. I've updated the article with a newer runtime. #please-close
Most helpful comment
I recommend updating this tutorial with a newer version of Databricks Run time, since the V5.2 is no longer supported.