如何将 AWS 访问密钥 ID 和秘密访问密钥指定为 amazon s3n URL 的一部分 [英] How to specify AWS Access Key ID and Secret Access Key as part of a amazon s3n URL

查看:36
本文介绍了如何将 AWS 访问密钥 ID 和秘密访问密钥指定为 amazon s3n URL 的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将输入和输出文件夹作为参数传递给来自网页的 mapreduce 字数统计程序.

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

出现以下错误:

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 访问密钥 ID 和秘密访问密钥指定为 amazon s3n URL 的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆