We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a9f42 commit 7f8ef76Copy full SHA for 7f8ef76
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/auth/ITestCustomSigner.java
@@ -133,11 +133,7 @@ private Configuration createTestConfig(String identifier) {
133
}
134
135
private String determineRegion(String bucketName) throws IOException {
136
- AmazonS3 s3 = AmazonS3ClientBuilder.standard().withCredentials(
137
- new SimpleAWSCredentialsProvider(null, createConfiguration()))
138
- .withForceGlobalBucketAccessEnabled(true).withRegion("us-east-1")
139
- .build();
140
- String region = s3.getBucketLocation(bucketName);
+ String region = getFileSystem().getBucketLocation(bucketName);
141
return fixBucketRegion(region);
142
143
0 commit comments