- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2024 01:42 AM - edited 07-07-2024 01:55 AM
Hi,
I reckon I've seen this problem earlier and if I remember correctly there was an issue related to Databricks Connect and single user mode.
I think your code will work if you use it directly in notebook, but will fail with Databricks Connect.
About the second error, it's pretty self explanatory - it looks like Delta Sharing is not supported as a streaming source in shared mode cluster.
And since you are using Databricks runtime >= 14.0, make sure to read about behavior changes for foreachBatch on compute configured with shared access mode.
Use foreachBatch to write to arbitrary data sinks | Databricks on AWS
PS. I managed to find the post with identical case, you can try to double check steps that @Retired_mod posted there.
Error in Spark Streaming with foreachBatch and Dat... - Databricks Community - 68843