PySpark using IAM roles to access S3

前端 未结 5 1491
野趣味
野趣味 2021-02-08 23:48

I\'m wondering if PySpark supports S3 access using IAM roles. Specifically, I have a business constraint where I have to assume an AWS role in order to access a given bucket. Th

5条回答
  •  心在旅途
    2021-02-09 00:06

    You could try the approach in Locally reading S3 files through Spark (or better: pyspark).

    However I've had better luck with setting environment variables (AWS_ACCESS_KEY_ID etc) in Bash ... pyspark will automatically pick these up for your session.

提交回复
热议问题