Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val mydataframe = ... //put some data in your dataframe, friend
mydataframe
.write
.partitionBy("year", "month", "day", "hour")
.option("orc.compress", "snappy")
.mode(SaveMode.Append)
.orc("/this/is/another/hdfs/directory")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.