Skip to content
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

Error in writing a csv to sftp path using spark "Exception in thread "main" 2: No such file" #89

Open
alaukikharsh opened this issue Feb 25, 2022 · 0 comments

Comments

@alaukikharsh
Copy link

alaukikharsh commented Feb 25, 2022

getting error no such file while writing a df to sftp path using spark. how can i write a dummy df to sftp path instead? what am i doing wrong here?

val DF = spark.sql("""select 1,2,3 as a""")
DF.show(10)
DF.coalesce(1).write.
      format("com.springml.spark.sftp").
      option("host", "correct 1").
      option("username", "correct 1").
      option("pem", "correct 1").
      option("fileType", "csv").
      option("codec", "bzip2").
      save(/PRODUCTION/SAMPLE/a.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