steveloughran commented on pull request #2395:
URL: https://github.com/apache/hadoop/pull/2395#issuecomment-800431767


   having problems with this and a bucket in ireland where I haven't fixed the 
endpoint up
   
   ```
   [ERROR] 
testCustomSignerAndInitializer(org.apache.hadoop.fs.s3a.auth.ITestCustomSigner) 
 Time elapsed: 2.368 s  <<< ERROR!
   org.apache.hadoop.fs.s3a.AWSRedirectException: getFileStatus on 
s3a://stevel-ireland/test: com.amazonaws.services.s3.model.AmazonS3Exception: 
The bucket is in this region: eu-west-1. Please use this region to retry the 
request (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved 
Permanently; Request ID: SJEZVWBWMKBDV37V; S3 Extended Request ID: 
UqxxO/6T1TrsbAE7rs3r/FrExYA8ealw8h+Zr+AxiM6ZxoFu6ZslTqUryhcsaT6XG5DrxtUccTg=; 
Proxy: null), S3 Extended Request ID: 
UqxxO/6T1TrsbAE7rs3r/FrExYA8ealw8h+Zr+AxiM6ZxoFu6ZslTqUryhcsaT6XG5DrxtUccTg=:301
 Moved Permanently: The bucket is in this region: eu-west-1. Please use this 
region to retry the request (Service: Amazon S3; Status Code: 301; Error Code: 
301 Moved Permanently; Request ID: SJEZVWBWMKBDV37V; S3 Extended Request ID: 
UqxxO/6T1TrsbAE7rs3r/FrExYA8ealw8h+Zr+AxiM6ZxoFu6ZslTqUryhcsaT6XG5DrxtUccTg=; 
Proxy: null)
        at 
org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:236)
        at 
org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:170)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.s3GetFileStatus(S3AFileSystem.java:3278)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.innerGetFileStatus(S3AFileSystem.java:3177)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.innerMkdirs(S3AFileSystem.java:3000)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.mkdirs(S3AFileSystem.java:2971)
        at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:2387)
        at 
org.apache.hadoop.fs.contract.AbstractFSContractTestBase.mkdirs(AbstractFSContractTestBase.java:361)
        at 
org.apache.hadoop.fs.contract.AbstractFSContractTestBase.setup(AbstractFSContractTestBase.java:203)
        at 
org.apache.hadoop.fs.s3a.AbstractS3ATestBase.setup(AbstractS3ATestBase.java:77)
        at 
org.apache.hadoop.fs.s3a.auth.ITestCustomSigner.setup(ITestCustomSigner.java:67)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.lang.Thread.run(Thread.java:748)
   Caused by: com.amazonaws.services.s3.model.AmazonS3Exception: The bucket is 
in this region: eu-west-1. Please use this region to retry the request 
(Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; 
Request ID: SJEZVWBWMKBDV37V; S3 Extended Request ID: 
UqxxO/6T1TrsbAE7rs3r/FrExYA8ealw8h+Zr+AxiM6ZxoFu6ZslTqUryhcsaT6XG5DrxtUccTg=; 
Proxy: null), S3 Extended Request ID: UqxxO/6T1TrsbAE7rs3r/FrExYA8ealw
   ```
   This is in #2778 but I've just replicated it in trunk too. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to