Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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