diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ProviderUtils.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ProviderUtils.java index 84ee9125114..013e56c9e69 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ProviderUtils.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ProviderUtils.java @@ -212,8 +212,6 @@ public final class ProviderUtils { public static char[] locatePassword(String envWithPass, String fileWithPass) throws IOException { char[] pass = null; - // Get the password file from the conf, if not present from the user's - // environment var if (System.getenv().containsKey(envWithPass)) { pass = System.getenv(envWithPass).toCharArray(); }