Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2021 08:41 PM
Maybe someone else can answer you, but I thought this was a limitation of spark; it cannot write outside the dbfs.
I use:
df.toPandas().to_csv("/tmp/foo.csv")To do this for small files.
For large files, write it to a dbfs path, and then use the shell to copy /dbfs/foo/partXXXX.csv out of dbfs.