diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java index de0abd1b34..33da05c80d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java @@ -1354,7 +1354,13 @@ public JobConf createConfiguration(HiveConf hiveConf) throws IOException { // Removing job credential entry/ cannot be set on the tasks conf.unset("mapreduce.job.credentials.binary"); - hiveConf.stripHiddenConfigurations(conf); + // If we are not stripping the hidden configuration at least add it + // to the properties that will be redacted and that aren't supposed + // to be shown. + String hiddenValues = conf.get("mapreduce.job.redacted-properties"); + conf.set("mapreduce.job.redacted-properties", + String.join(",", hiddenValues, + conf.get(HiveConf.ConfVars.HIVE_CONF_HIDDEN_LIST.varname))); return conf; }