amazon-web-services - 使用带有正斜杠的 key 连接到 s3 接收器时出现无效主机名错误

标签 amazon-web-services amazon-s3 flume

我有一个 forward slash 在 aws key 中。

当我尝试连接到 s3 接收器时

Caused by: java.lang.IllegalArgumentException: Invalid hostname in URI s3://xxxx:xxxx@jelogs/je.1359961366545
    at org.apache.hadoop.fs.s3.S3Credentials.initialize(S3Credentials.java:41)

当我用 %2F 编码正斜杠时,我得到
The request signature we calculated does not match the signature you provided. Check your key and signing method.

我应该如何编码我的 key 。

最佳答案

samthebest 解决方案有效,您只需在键周围添加“”。这里如何使用它:

hadoop distcp -Dfs.s3a.awsAccessKeyId="yourkey" -Dfs.s3a.awsSecretAccessKey="yoursecret" <your_hdfs_path> s3a://<your-bucket>

关于amazon-web-services - 使用带有正斜杠的 key 连接到 s3 接收器时出现无效主机名错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14681938/

相关文章:

amazon-web-services - 亚马逊 EBS 每天定价 : monthly??每小时?

python - Boto3 S3 : Get files without getting folders

amazon-web-services - 借助 Amazon S3 智能分层,您如何知道对象位于哪一层?

hadoop - 在 Flume 中,文件 channel 的 channel 容量到底意味着什么?

ios - Amazon Cognito - 将访客用户身份转换为经过身份验证的用户

postgresql - 无法使用Postgresql或Redshift驱动程序连接到Redshift服务器

Java AWS S3 PutObject 多部分文件

php - Zend - 更改用于部署的图像 URL 路径

hadoop - 文件分成许多部分

apache-spark - 使用 apache Spark Streaming 进行实时日志处理