How to specify AWS Access Key ID and Secret Access Key as part of a amazon s3n URL

user3795951 picture user3795951 · Jul 24, 2014 · Viewed 41.6k times · Source

I am passing input and output folders as parameters to mapreduce word count program from webpage.

Getting below error:

HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3n URL, or by setting the fs.s3n.awsAccessKeyId or fs.s3n.awsSecretAccessKey properties (respectively).

Answer

RickH picture RickH · Jul 24, 2014

The documentation has the format: http://wiki.apache.org/hadoop/AmazonS3

 s3n://ID:SECRET@BUCKET/Path