OSError: [Errno 107] Transport endpoint is not connected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 10:23 AM - edited 03-11-2024 10:26 AM
Hi,
I am facing this error when performing write operation in foreach() on a dataframe. The piece of code was working fine for over 3 months but started failing since last week.
To give some context, I have a dataframe extract_df which contains 2 columns xml_full_name and content.
- Labels:
-
Spark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 04:52 AM
Thanks for the suggestion. I am not using structured streaming in the code. Not sure, if i can use `foreachBatch()` without it.
I have added a `try` block around the `foreach()` logic and added the `foreachPartition()` logic in an `except` block.
Also, the error resolved itself without any changes from our side. We are still awaiting response from Databricks support as to why the error intermittently appeared.

