cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.