cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Ingest from FTP server doesn't work

eyalo
New Contributor II

Hi,

I am trying to connect my FTP server and store the files to a dataframe with the following code:

%pip install ftputil

from ftputil import FTPHost

Host = "92.118.67.49"

Login = "StrideNBM-DF_BO"

Passwd = "Sdf123456"

ftp_dir = "/dwh-reports/"

with FTPHost(Host, Login, Passwd) as ftp:

    ftp.chdir(ftp_dir)

    files = ftp.listdir(ftp.curdir)

    print(files)

i'm getting the following error: FTPOSError: [Errno 110] Connection timed out

Debugging info: ftputil 5.0.4, Python 3.9.5 (linux)

Important to mention that i whitelisted my local computer's IP and checked the FTP connection with WinSCP and it did worked.

My cluster's runtime version is 11.3 LTS (includes Apache Spark 3.3.0, Scala 2.12)

Appriciate you help and perhapse offer an alternative solution from you end.

Thanks,

Eyal.

0 REPLIES 0

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group