How to run pysftp connection using serverless compute in Azure Databricks

Quan Sun 21 Reputation points
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.
2,514 questions
{count} votes

Your answer

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