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.