Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2024 04:07 AM
Hi @guangyi ,
To disable _commited_xxx, _started_xxx and _SUCCSSS you must set below spark options:
spark.conf.set("spark.databricks.io.directoryCommit.createSuccessFile","false")
spark.conf.set("mapreduce.fileoutputcommitter.marksuccessfuljobs", "false")
spark.conf.set("spark.sql.sources.commitProtocolClass", "org.apache.spark.sql.execution.datasources.SQLHadoopMapReduceCommitProtocol")
And if you want to have single csv file, you need to use coalsece before write operation:
coalesce(1).write.mode("overwrite")