如何将AWS Access Key ID和Secret Access Key指定为amazon s3n URL的一部分 [英] How to specify AWS Access Key ID and Secret Access Key as part of a amazon s3n URL
问题描述
我将输入和输出文件夹作为参数传递给mapreduce字数统计程序。
I am passing input and output folders as parameters to mapreduce word count program from webpage.
获取以下错误:
Getting below error:
HTTP状态500 - 请求处理失败;嵌套异常是
java.lang.IllegalArgumentException:AWS访问密钥ID和秘密
访问密钥必须指定为s3n URL的用户名或密码
(分别),或者通过设置fs .s3n.awsAccessKeyId
或fs.s3n.awsSecretAccessKey属性(分别)。
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).
推荐答案
<文档格式为: http://wiki.apache.org/hadoop/AmazonS3
s3n://ID:SECRET@BUCKET/Path
这篇关于如何将AWS Access Key ID和Secret Access Key指定为amazon s3n URL的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!