Created
February 19, 2019 09:57
-
-
Save etheleon/f05cc79ad5cd6dc0eb3dbfc2e1bbedcc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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