diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 5e7506e3903..d9a678f166f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -403,6 +403,8 @@ Release 2.0.3-alpha - Unreleased HDFS-4074. Remove the unused default constructor from INode. (Brandon Li via szetszwo) + HDFS-4053. Increase the default block size. (eli) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java index ba8f733695d..9ea1ec5b526 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java @@ -31,7 +31,7 @@ import org.apache.hadoop.fs.CommonConfigurationKeys; public class DFSConfigKeys extends CommonConfigurationKeys { public static final String DFS_BLOCK_SIZE_KEY = "dfs.blocksize"; - public static final long DFS_BLOCK_SIZE_DEFAULT = 64*1024*1024; + public static final long DFS_BLOCK_SIZE_DEFAULT = 128*1024*1024; public static final String DFS_REPLICATION_KEY = "dfs.replication"; public static final short DFS_REPLICATION_DEFAULT = 3; public static final String DFS_STREAM_BUFFER_SIZE_KEY = "dfs.stream-buffer-size"; diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml index 59341b40575..13dad672a2c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/resources/hdfs-default.xml @@ -358,7 +358,7 @@ dfs.blocksize - 67108864 + 134217728 The default block size for new files, in bytes. You can use the following suffix (case insensitive):