Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NoSuchMethodError while sending file to ftp location #87

@mrugankatdure

Description

@mrugankatdure

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions