使用具有正斜杠的秘密密钥连接到S3接收器时出现无效的主机名错误 [英] Invalid hostname error when connecting to s3 sink when using secret key having forward slash
本文介绍了使用具有正斜杠的秘密密钥连接到S3接收器时出现无效的主机名错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的AWS密钥中有一个 forward slash
.
I have a forward slash
in aws secret key.
当我尝试连接到s3接收器
When I try to connect to s3 sink
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
编码正斜杠时,我得到
When I encode forward slash with %2F
, I get
The request signature we calculated does not match the signature you provided. Check your key and signing method.
我应该如何编码我的秘密密钥.
How should I encode my secret key.
推荐答案
我最终创建了一个没有正斜杠的新密钥.这是一个已知问题,生成新密钥只是解决方案.
I end up creating a new secret key without forward slashes. This is a know issue and generating new key is only solution.
这篇关于使用具有正斜杠的秘密密钥连接到S3接收器时出现无效的主机名错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文