From 8d5ea7470a3225319e3bef5626b837572c2e0d3c Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Fri, 16 Feb 2018 09:38:34 -0800 Subject: [PATCH] HDFS-13153. Enable HDFS diskbalancer by default. Contributed by Ajay Kumar. --- .../src/main/java/org/apache/hadoop/hdfs/DFSConfigKeys.java | 2 +- .../hadoop-hdfs/src/main/resources/hdfs-default.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 c0ad4eceb11..0828957fbb8 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 f6d232eb017..b61c41802aa 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.