Skip to content

Instantly share code, notes, and snippets.

@MrPowers
Created April 9, 2016 19:30
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 MrPowers/dc0f6a06245c411cbdc2627e82d2d39d to your computer and use it in GitHub Desktop.
Save MrPowers/dc0f6a06245c411cbdc2627e82d2d39d to your computer and use it in GitHub Desktop.
df.coalesce(1).write
.format("com.databricks.spark.csv")
.option("header", "true")
.save("s3n://some_bucket/data/states/all_states/")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment