I have a zip file in FTP server. I want to retrieve the zip file and unzip it list the files in this zip, select some files and transfer it again to another folder in the FTP server. How we can do this with pyspark or spark Scala?
I tried this with Scala :
val df = spark.read.
format("com.springml.spark.sftp").
option("host", "SFTP_HOST").
option("username", "SFTP_USER").
option("password", "****").
option("fileType", "csv").
option("delimiter", ";").
option("quote", "\"").
option("escape", "\\").
option("multiLine", "true").
option("inferSchema", "true")
but it does not work for me.