Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 09-04-2016 10:04 PM
we are trying to generate an output from SqlContext and would like to place the results on SFTP server. Please suggest a way. we are using spark 1.4.1 version.
I could save the results on HDFS but we are looking for direct connection from spark to SFTP the results.
Created 09-05-2016 04:07 PM
Hi Surya,
Add SPARK-SFTP library as --packages or --jar in your spark-submit command.
I am not sure spark 1.4.1 would be able to handle it. Look at upgrading spark to 1.6.1
Check
https://github.com/springml/spark-sftp
https://spark-packages.org/package/springml/spark-sftp
Include this package in your Spark Applications using:
> $SPARK_HOME/bin/spark-shell --packages com.springml:spark-sftp_2.10:1.0.1
In your sbt build file, add:
libraryDependencies += "com.springml" % "spark-sftp_2.10" % "1.0.1"
<dependencies>
<!-- list of dependencies -->
<dependency>
<groupId>com.springml</groupId>
<artifactId>spark-sftp_2.10</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
1bf5b3 | zip | jar ) / Date: 2016-05-27 / License: Apache-2.0 / Scala version: 2.10
7d5b02 | zip | jar ) / Date: 2016-01-11 / License: Apache-2.0 / Scala version: 2.10
Created 09-05-2016 04:07 PM
Hi Surya,
Add SPARK-SFTP library as --packages or --jar in your spark-submit command.
I am not sure spark 1.4.1 would be able to handle it. Look at upgrading spark to 1.6.1
Check
https://github.com/springml/spark-sftp
https://spark-packages.org/package/springml/spark-sftp
Include this package in your Spark Applications using:
> $SPARK_HOME/bin/spark-shell --packages com.springml:spark-sftp_2.10:1.0.1
In your sbt build file, add:
libraryDependencies += "com.springml" % "spark-sftp_2.10" % "1.0.1"
<dependencies>
<!-- list of dependencies -->
<dependency>
<groupId>com.springml</groupId>
<artifactId>spark-sftp_2.10</artifactId>
<version>1.0.1</version>
</dependency>
</dependencies>
1bf5b3 | zip | jar ) / Date: 2016-05-27 / License: Apache-2.0 / Scala version: 2.10
7d5b02 | zip | jar ) / Date: 2016-01-11 / License: Apache-2.0 / Scala version: 2.10
Created 09-06-2016 02:13 PM
Thank you , it helped. @Amit Nandi