I see the below error when I am writing a CSV.
Stdoutput Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Task 9560 in stage 21.