我创建自己的s3密钥库,如下所示:
hadoop credential create fs.s3a.access.key -value my_access_key -provider localjceks://file/home/john/aws/aws.jceks
hadoop credential create fs.s3a.secret.key -value my_secret_key -provider localjceks://file/home/john/aws/aws.jceks
然后我尝试使用它:
hadoop fs -ls s3a://my_bucket/ -Dhadoop.security.credential.provider.path=localjceks://file/home/john/aws/aws.jceks
但是我得到这个错误:
com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied =
-ls: java.net.URISyntaxException: Illegal character in scheme name at index 0: -Dhadoop.security.credential.provider.path=localjceks://file/home/john/aws/aws.jceks
架构名称有什么问题?