java.lang.RuntimeException

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.

  • Add compatibility to CEPH
    via GitHub by armin-bauer
    ,
  • s3.getObject(bucket,key) fails with 400
    via by Unknown author,
  • Spring Integration DSL ErrorHandling
    via Stack Overflow by James Gilchrist
    ,
  • GitHub comment 60#71490703
    via GitHub by mattwigway
    ,
  • Superficial Reflections
    via by Unknown author,
    • java.lang.RuntimeException: Error whilst fetching 's3://snowplow-hosted-assets/common/emr/snowplow-ami4-bootstrap-0.2.0.sh' at aws157.instancecontroller.util.S3Wrapper.fetchS3HadoopFileToLocal(S3Wrapper.java:386) 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) Caused by: 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) ... 8 more

    Users with the same issue

    asdasd
    2 times, last one,
    Unknown visitor1 times, last one,
    Nikolay Rybak
    3 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    49 more bugmates