If you repartition(1), only one core of your whole cluster works. Please use repartition to the number of cores (SparkContext.DefaultParallelism).
After writing, you will get one file per core, so please use other software to merge files if you want to have only one (ADF has some excellent options for that in copy).