spark-sftp | Spark connector for SFTP | CSV Processing library
kandi X-RAY | spark-sftp Summary
kandi X-RAY | spark-sftp Summary
A library for constructing dataframes by downloading files from SFTP and writing dataframe to a SFTP server.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of spark-sftp
spark-sftp Key Features
spark-sftp Examples and Code Snippets
Community Discussions
Trending Discussions on spark-sftp
QUESTION
I am looking for a simple way to read a file (and maybe a directory) via sftp protocol in scala.
My tries:
I've looked at the Alpakka library, which is a part of akka. But this works with streams, which is a complex topic I am not familiar with and it seems to much effort for this.
Then there is spark-sftp: this needs scala spark, which would be a bit much just to load a file.
There is the jsch library for java that could do the job, but I could not bring it to work
I am looking for actual working code that uses a library and sftp instead of a plain scp, which I am forced to do. I've found that there are not many examples for this on the web, and the ones I have found are much more complex.
...ANSWER
Answered 2021-Feb-22 at 11:40Here is a working example, using sshj:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install spark-sftp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page