Open andrewrguy opened 9 years ago
Update: this approach worked:
$ export AWS_ACCESS_KEY_ID=...
$ export AWS_SECRET_ACCESS_KEY=...
However, when I have a production ready system, this approach will not work for me. Any reason, why the properties file is not taking my access ids?
I solved this adding those variables as root user.
$ sudo su
$ mkdir /root/.aws
$ nano credentials
# After you create the file, exit as root user
$ exit
Status :FAILED Reason : Log File : s3://aws-logs-388546034523-ap-southeast-2/elasticmapreduce/j-3MMYU5AZJ1UNE/steps/s-2B4ONS94M7B00/stderr.gz Details : Exception in thread "main" com.amazon.ws.emr.hadoop.fs.shaded.com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain JAR location : command-runner.jar Main class : None Arguments : spark-submit --class com.example.project.SimpleApp --deploy-mode cluster --master yarn s3://XXXXX/spark-log-job_2.10-1.0.jar Action on failure: Continue
Hi , I am facing this issue when i submit spark scala job . looking for some help on this .
Thanks in Advance .
I am still facing this issue, i am running docker container and trying to connect to DynamoDB, when i curl on one of the end point i get "message":"com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain i am logging in through saml2aws and credentials are already present in .aws folder. Please advise
I'm having a similar issue running kcl-bootstrap (https://github.com/awslabs/amazon-kinesis-client-nodejs). It seems like it's unable to read credentials in ~/.aws/credentials
and fails with SdkClientException: Unable to load AWS credentials from any provider in the chain
, although my credentials setup is working elsewhere. Same as mentioned above, if I directly set AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
, it does work. It's like the environment isn't being passed through somewhere.
I am trying to run the RedshiftBasic sample and I have included aws.accessKeyId and aws.secretKey properties at the end of the RedshiftBasicSample.properties file per the instructions. When I run 'ant run', the following trace comes out:
What am I missing?
Thanks.