Skip to content

Instantly share code, notes, and snippets.

@hadoopsters
Created September 1, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hadoopsters/559e78d074bc8f2b150c1986a22be46a to your computer and use it in GitHub Desktop.
Save hadoopsters/559e78d074bc8f2b150c1986a22be46a to your computer and use it in GitHub Desktop.
val mydataframe = ... //put some data in your dataframe, friend
mydataframe
.write
.option("orc.compress", "snappy")
.mode(SaveMode.Append)
.orc("/this/is/an/hdfs/directory/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment