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 c0ad4eceb1..0828957fbb 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 @@ -1146,7 +1146,7 @@ public class DFSConfigKeys extends CommonConfigurationKeys { // Disk Balancer Keys public static final String DFS_DISK_BALANCER_ENABLED = "dfs.disk.balancer.enabled"; - public static final boolean DFS_DISK_BALANCER_ENABLED_DEFAULT = false; + public static final boolean DFS_DISK_BALANCER_ENABLED_DEFAULT = true; public static final String DFS_DISK_BALANCER_MAX_DISK_THROUGHPUT = "dfs.disk.balancer.max.disk.throughputInMBperSec"; 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 f6d232eb01..b61c41802a 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 @@ -4633,10 +4633,10 @@ dfs.disk.balancer.enabled - false + true This enables the diskbalancer feature on a cluster. By default, disk - balancer is disabled. + balancer is enabled.