Unable to write spark df to csv with column headers and multiple partitions?
![parul](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar14.png)
parul
Registered Posts: 1 ✭✭✭✭
Writing spark df into csv along with headers repartitions the df into 1 by default. So it takes a lot of time while writing considering the dataset is large because only 1 partition is active. How do I write spark dataframe to csv in hdfs with column headers and multiple partitions, so that it runs faster?
Tagged: