我有一个 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/