【问题标题】:Amazon s3Exception bad request and location constraint in hadoop s3ahadoop s3a中的Amazon s3Exception错误请求和位置约束
【发布时间】:2019-02-04 18:32:35
【问题描述】:

位置约束是否需要对 hadoop s3a 额外的权限策略?

我看到了

Exception in thread "main" com.qubole.com.amazonaws.services.s3.model.AmazonS3Exception: Bad Request (Service: Amazon S3; Status Code: 400; Error Code: 400 Bad Request;

对于所有具有

{
    "LocationConstraint": "us-west-1"
}

在qubole hadoop中

但不适用于没有位置限制的存储桶

{
    "LocationConstraint": null
}

【问题讨论】:

    标签: amazon-web-services hadoop amazon-s3 qubole


    【解决方案1】:

    从来没有见过,但我从来没有玩过这个限制。可能的原因是客户端默认通过默认的中心端点与 S3 通信,而不是美国西部的。

    s3a troubleshooting

    fs.s3a.endpoint设置为相关的listed here

    如果这行得通 - 更新这个问题...它会用 then 更新 s3 文档

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-07
      • 2015-04-29
      • 1970-01-01
      • 1970-01-01
      • 2019-12-30
      • 2021-12-31
      • 2022-11-25
      • 1970-01-01
      相关资源
      最近更新 更多