Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert 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.

Solutions on the web

via GitHub by alexanderdean
, 1 year ago
Error whilst fetching 's3://snowplow-hosted-assets/common/emr/snowplow-ami4-bootstrap-0.2.0.sh'
com.amazonaws.services.s3.model.AmazonS3Exception: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. (Service: Amazon S3; Status Code: 301; Error Code: PermanentRedirect; Request ID: 79FBEC46ACB3ADB4), S3 Extended Request ID: buv1jZsTX3I3KknQvQ8eWKo5z0QTmD+I84S19InzpcvSkEfnefiGyZn7j3p+vMt7RgUjbMRowhQ=	at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1383)	at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:902)	at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:607)	at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:376)	at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:338)	at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:287)	at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3676)	at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1179)	at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1054)	at aws157.instancecontroller.util.S3Wrapper.copyS3ObjectToFile(S3Wrapper.java:277)	at aws157.instancecontroller.util.S3Wrapper.getFile(S3Wrapper.java:261)	at aws157.instancecontroller.util.S3Wrapper.fetchS3HadoopFileToLocal(S3Wrapper.java:373)	at aws157.instancecontroller.util.S3Wrapper.fetchHadoopFileToLocal(S3Wrapper.java:325)	at aws157.instancecontroller.util.S3Wrapper.fetchHadoopFileToLocal(S3Wrapper.java:336)	at aws157.instancecontroller.common.InstanceConfigurator.runScript(InstanceConfigurator.java:484)	at aws157.instancecontroller.common.InstanceConfigurator.runBootstrapAction(InstanceConfigurator.java:457)	at aws157.instancecontroller.common.InstanceConfigurator.runBootstrapActions(InstanceConfigurator.java:292)	at aws157.instancecontroller.common.InstanceConfigurator.doDistributionConfigure(InstanceConfigurator.java:193)	at aws157.instancecontroller.common.InstanceConfigurator.access$200(InstanceConfigurator.java:67)	at aws157.instancecontroller.common.InstanceConfigurator$1.run(InstanceConfigurator.java:244)