diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java index 9a8841e701..9751a9b669 100755 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java @@ -1690,7 +1690,11 @@ public boolean getBoolean(String name, boolean defaultValue) { return true; else if (StringUtils.equalsIgnoreCase("false", valueString)) return false; - else return defaultValue; + else { + LOG.warn("Invalid value for boolean: " + valueString + + ", choose default value: " + defaultValue + " for " + name); + return defaultValue; + } } /**