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

incorrect directories #23

Closed
francopatanojll opened this issue May 25, 2018 · 2 comments
Closed

incorrect directories #23

francopatanojll opened this issue May 25, 2018 · 2 comments

Comments

@francopatanojll
Copy link

Using Azure Databricks, the connector dropped the file in the root tmp folder "/tmp/" but when accessing the file later it errored out with file not found because it was reading from "/dbfs/tmp/".

@samuel-pt
Copy link
Collaborator

Can you try specifying the temp folder using tempLocation option?
Something like

val df = spark.read.
            format("com.springml.spark.sftp").
            option("host", "SFTP_HOST").
            option("username", "SFTP_USER").
            option("password", "****").
            option("fileType", "csv").
            option("delimiter", ";").
            option("inferSchema", "true").
            option("tempLocation", "/dbfs/tmp/").
            load("/ftp/files/sample.csv")

@francopatanojll
Copy link
Author

francopatanojll commented May 29, 2018 via email

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

2 participants