Support Questions

Find answers, ask questions, and share your expertise

java.io.IOException: Cannot find AWS access key.

avatar
Contributor

I've a Spark job copying file from S3 bucket to HDFS using spark data frame api.

if we change --executor-cores to 1. then the job is successfully completing without any issues. if we change --executor-cores to 5 then it is throwing below error.

java.io.IOException: Cannot find AWS access key.

at org.apache.hadoop.fs.s3a.S3AFileSystem.getAWSAccessKeys(S3AFileSystem.java:358)

1 ACCEPTED SOLUTION

avatar
Expert Contributor
@rakanchi

It is a known bug in Multi-threaded access to CredentialProviderFactory is not thread-safe. I had similar case with one of the customer. Had to apply hdfs patch : HADOOP-14195

View solution in original post

1 REPLY 1

avatar
Expert Contributor
@rakanchi

It is a known bug in Multi-threaded access to CredentialProviderFactory is not thread-safe. I had similar case with one of the customer. Had to apply hdfs patch : HADOOP-14195