diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java index cea9582c8ccb0c79700ac7913735d4cdf52f0c7e..f47aa0864bda162d41158119eac74214cba06c81 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ExecDriver.java @@ -175,7 +175,11 @@ public void initialize(QueryState queryState, QueryPlan queryPlan, DriverContext initializeFiles("tmpfiles", getResource(conf, SessionState.ResourceType.FILE)); initializeFiles("tmparchives", getResource(conf, SessionState.ResourceType.ARCHIVE)); - conf.stripHiddenConfigurations(job); + // Hide sensitive configuration values from MR HistoryUI by telling MR to redact the following list. + // Note: We should not strip the values before submitting the job as there might be other variables used + // by MR, such as S3 credentials. + job.set("mapreduce.job.redacted-properties", job.get(HiveConf.ConfVars.HIVE_CONF_HIDDEN_LIST.varname)); + this.jobExecHelper = new HadoopJobExecHelper(job, console, this, this); }