I have code:
dataFrame.write
.partitionBy("format", "dataset", "year", "month", "day", "hour")
.format(outputFormat)
.mode("overwrite")
.save(outputPath)
How can I write dataFrame without prefixes ? Not renaming. Is there any way to do this by Spark or hadoop configurations? Currently I'm using separate bash-script to rename folders.
To be clear, I want to get next structure using Spark code:
data
-+parquet
+main
+2017
+01
+31
+15
