com.amazonaws.services.s3.model.AmazonS3Exception

tip

Set the S3 bucket to the same region as AmazonS3Client, otherwise it just throws this exception. Check if your bucket name is correct as well.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Hadoop S3 List Bucket Contents Error
    via Stack Overflow by prometheus2305
    ,
    • com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 1BEA69C8759690E3) at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1401) at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:945) at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:723) at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:475) at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:437) at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:386) at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3996) at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1161) at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1136)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    tvrmsmithtvrmsmith
    2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    49 more bugmates