aws access s3 from spark using IAM role
问题 I want to access s3 from spark, I don't want to configure any secret and access keys, I want to access with configuring the IAM role, so I followed the steps given in s3-spark But still it is not working from my EC2 instance (which is running standalone spark) it works when I tested [ec2-user@ip-172-31-17-146 bin]$ aws s3 ls s3://testmys3/ 2019-01-16 17:32:38 130 e.json but it did not work when I tried like below scala> val df = spark.read.json("s3a://testmys3/*") I am getting the below error