Skip to content

Instantly share code, notes, and snippets.

@MrPowers
Created April 9, 2016 18:43
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/88e0623417a770f8b836f9f68348545b to your computer and use it in GitHub Desktop.
Save MrPowers/88e0623417a770f8b836f9f68348545b to your computer and use it in GitHub Desktop.
val accessKeyId = System.getenv("AWS_ACCESS_KEY_ID")
val secretAccessKey = System.getenv("AWS_SECRET_ACCESS_KEY")
sc.hadoopConfiguration.set("fs.s3n.awsAccessKeyId", accessKeyId)
sc.hadoopConfiguration.set("fs.s3n.awsSecretAccessKey", secretAccessKey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment