Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/17080#discussion_r103900716 --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala --- @@ -93,6 +93,16 @@ class SparkHadoopUtil extends Logging { hadoopConf.set("fs.s3.awsSecretAccessKey", accessKey) hadoopConf.set("fs.s3n.awsSecretAccessKey", accessKey) hadoopConf.set("fs.s3a.secret.key", accessKey) + + if (System.getenv("AWS_SESSION_TOKEN") != null) { + val sessionToken = System.getenv("AWS_SESSION_TOKEN") + hadoopConf.set("fs.s3a.session.token", sessionToken) + logDebug(s"Found 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY' and " + --- End diff -- Are these debug statements that useful? they don't need to be interpolated strings, FWIW.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org