I have question i want to sequentially write many dataframe in avro format and i use the code below in a for loop.
df
.repartition(<number-of-partition>)
.write
.mode(<write-mode>)
.avro(<file-path>)
The problem is when i run my spark job , I see at a time only one task is getting executed (so , only 1 data frame is getting written) . Also when I checked the number of active executors in the spark-ui , I see only 1 executor is being used.
Is it possible to write DataFrames in parallel in Spark? If yes am i doing it the good way?
