Skip to content

NoSuchMethodError while sending file to ftp location #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrugankatdure opened this issue Sep 30, 2021 · 0 comments
Open

NoSuchMethodError while sending file to ftp location #87

mrugankatdure opened this issue Sep 30, 2021 · 0 comments

Comments

@mrugankatdure
Copy link

mrugankatdure commented Sep 30, 2021

Getting ,

Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps;

CODE:

val rDD = sparkContext.parallelize(data)
val df = sparkSession.createDataFrame(rDD)
df.printSchema()

val ftpDf = df.write.format("com.springml.spark.sftp")
  .option("host","server name")
  .option("username","*****")
  .option("password","*******")
  .option("fileType","csv")
  .option("delimeter","|")
  .option("quote", "\u0000")
  .option("nullValue",null)
  .save("/somelocation/mrugank/sample.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant