Writing files via rdd.saveAsPickleFile(output_path) fails if the directory already exists. While that is a good thing to avoid accidental file deletion, I was wondering if there was an option to explicitly overwrite the folder/the files? Similarly to dataframes:
df.write.mode('overwrite').format('json').save(output_path)
Note: the following two questions here and here have asked this before but not received explicit answers.