How to run pysftp connection using serverless compute in Azure Databricks

Anonymous
2025-04-30T02:50:20.1633333+00:00

Hello Community,

The code below ran successfully using all purpose cluster, but when I switched to serverless compute, I ran into exception: connection timed out. Usually it would take around 2 mins and then failed.User's image

I searched online about this issue and but I was not able to find one related to running pysftp using serverless compute in Databricks. What're the potential root causes? How to fix this issue?

Thanks.

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.