Skip to content

Commit 7f1b76c

Browse files
authored
HADOOP-13868. [s3a] New default for S3A multi-part configuration (#1125)
1 parent cd967c7 commit 7f1b76c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,15 +1353,15 @@
13531353

13541354
<property>
13551355
<name>fs.s3a.multipart.size</name>
1356-
<value>100M</value>
1356+
<value>64M</value>
13571357
<description>How big (in bytes) to split upload or copy operations up into.
13581358
A suffix from the set {K,M,G,T,P} may be used to scale the numeric value.
13591359
</description>
13601360
</property>
13611361

13621362
<property>
13631363
<name>fs.s3a.multipart.threshold</name>
1364-
<value>2147483647</value>
1364+
<value>128M</value>
13651365
<description>How big (in bytes) to split upload or copy operations up into.
13661366
This also controls the partition size in renamed files, as rename() involves
13671367
copying the source file(s).

hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/Constants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ private Constants() {
202202

203203
// size of each of or multipart pieces in bytes
204204
public static final String MULTIPART_SIZE = "fs.s3a.multipart.size";
205-
public static final long DEFAULT_MULTIPART_SIZE = 104857600; // 100 MB
205+
public static final long DEFAULT_MULTIPART_SIZE = 67108864; // 64M
206206

207207
// minimum size in bytes before we start a multipart uploads or copy
208208
public static final String MIN_MULTIPART_THRESHOLD =
209209
"fs.s3a.multipart.threshold";
210-
public static final long DEFAULT_MIN_MULTIPART_THRESHOLD = Integer.MAX_VALUE;
210+
public static final long DEFAULT_MIN_MULTIPART_THRESHOLD = 134217728; // 128M
211211

212212
//enable multiobject-delete calls?
213213
public static final String ENABLE_MULTI_DELETE =

hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,15 +860,15 @@ options are covered in [Testing](./testing.md).
860860

861861
<property>
862862
<name>fs.s3a.multipart.size</name>
863-
<value>100M</value>
863+
<value>64M</value>
864864
<description>How big (in bytes) to split upload or copy operations up into.
865865
A suffix from the set {K,M,G,T,P} may be used to scale the numeric value.
866866
</description>
867867
</property>
868868

869869
<property>
870870
<name>fs.s3a.multipart.threshold</name>
871-
<value>2147483647</value>
871+
<value>128MB</value>
872872
<description>How big (in bytes) to split upload or copy operations up into.
873873
This also controls the partition size in renamed files, as rename() involves
874874
copying the source file(s).

0 commit comments

Comments
 (0)