Skip to content

Instantly share code, notes, and snippets.

@etheleon
Created February 19, 2019 09:57
Show Gist options
  • Save etheleon/f05cc79ad5cd6dc0eb3dbfc2e1bbedcc to your computer and use it in GitHub Desktop.
Save etheleon/f05cc79ad5cd6dc0eb3dbfc2e1bbedcc to your computer and use it in GitHub Desktop.
jsc <- invoke_static(sc, "org.apache.spark.api.java.JavaSparkContext", "fromSparkContext", spark_context(sc))
hconf <- jsc %>% invoke("hadoopConfiguration")
# set the keys
hconf %>% invoke("set","fs.s3a.access.key", AWS_ACCESS_KEY)
hconf %>% invoke("set","fs.s3a.secret.key", AWS_SECRET_KEY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment