File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1176,6 +1176,12 @@ private Constants() {
1176
1176
*/
1177
1177
public static final String AWS_S3_CENTRAL_REGION = "us-east-1" ;
1178
1178
1179
+ /**
1180
+ * The default region to be used for S3 with cross region access enabled.
1181
+ * Value {@value}.
1182
+ */
1183
+ public static final String AWS_S3_DEFAULT_REGION = "us-east-2" ;
1184
+
1179
1185
/**
1180
1186
* Require that all S3 access is made through Access Points.
1181
1187
*/
Original file line number Diff line number Diff line change 50
50
import org .apache .hadoop .fs .store .LogExactlyOnce ;
51
51
52
52
import static org .apache .hadoop .fs .s3a .Constants .AWS_REGION ;
53
- import static org .apache .hadoop .fs .s3a .Constants .AWS_S3_CENTRAL_REGION ;
53
+ import static org .apache .hadoop .fs .s3a .Constants .AWS_S3_DEFAULT_REGION ;
54
54
import static org .apache .hadoop .fs .s3a .Constants .CENTRAL_ENDPOINT ;
55
55
import static org .apache .hadoop .fs .s3a .impl .AWSHeaders .REQUESTER_PAYS_HEADER ;
56
56
import static org .apache .hadoop .fs .s3a .Constants .DEFAULT_SECURE_CONNECTIONS ;
@@ -282,7 +282,7 @@ private static Region getS3RegionFromEndpoint(String endpoint) {
282
282
* @return the S3 region
283
283
*/
284
284
private static Region getS3Region (Configuration conf ) {
285
- String region = conf .getTrimmed (AWS_REGION , AWS_S3_CENTRAL_REGION );
285
+ String region = conf .getTrimmed (AWS_REGION , AWS_S3_DEFAULT_REGION );
286
286
LOG .debug ("fs.s3a.endpoint.region=\" {}\" " , region );
287
287
if (!region .isEmpty ()) {
288
288
// there's either an explicit region or we have fallen back
You can’t perform that action at this time.
0 commit comments