Skip to content

Commit

Permalink
Updating Spark config to force default credentials chain for AWS (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumare3 authored Jan 21, 2021
1 parent 17352c7 commit 0e2dd72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deployment/eks/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8285,6 +8285,10 @@ data:
plugins:
spark:
spark-config-default:
# We override the default credentials chain provider for Hadoop so that
# it can use the serviceAccount based IAM role or ec2 metadata based.
# This is more in line with how AWS works
- spark.hadoop.fs.s3a.aws.credentials.provider: "com.amazonaws.auth.DefaultAWSCredentialsProviderChain"
- spark.hadoop.mapreduce.fileoutputcommitter.algorithm.version: "2"
- spark.kubernetes.allocation.batch.size: "50"
- spark.hadoop.fs.s3a.acl.default: "BucketOwnerFullControl"
Expand Down Expand Up @@ -8333,7 +8337,7 @@ kind: ConfigMap
metadata:
annotations: {}
labels: {}
name: flyte-propeller-config-88bdc8dc9f
name: flyte-propeller-config-ct29cf4cch
namespace: flyte
---
apiVersion: v1
Expand Down Expand Up @@ -8755,7 +8759,7 @@ spec:
serviceAccountName: flytepropeller
volumes:
- configMap:
name: flyte-propeller-config-88bdc8dc9f
name: flyte-propeller-config-ct29cf4cch
name: config-volume
---
apiVersion: apps/v1
Expand Down
4 changes: 4 additions & 0 deletions kustomize/overlays/eks/config/propeller/plugins/spark.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
plugins:
spark:
spark-config-default:
# We override the default credentials chain provider for Hadoop so that
# it can use the serviceAccount based IAM role or ec2 metadata based.
# This is more in line with how AWS works
- spark.hadoop.fs.s3a.aws.credentials.provider: "com.amazonaws.auth.DefaultAWSCredentialsProviderChain"
- spark.hadoop.mapreduce.fileoutputcommitter.algorithm.version: "2"
- spark.kubernetes.allocation.batch.size: "50"
- spark.hadoop.fs.s3a.acl.default: "BucketOwnerFullControl"
Expand Down

0 comments on commit 0e2dd72

Please sign in to comment.