From eaaa77af0f147a48f9559a62e887938ea00fc3a7 Mon Sep 17 00:00:00 2001 From: Ashutosh Chauhan Date: Mon, 11 May 2020 22:05:13 -0700 Subject: [PATCH] HIVE-23447 : Avoid sending configs to tasks and AM which are only relevant for HS2 --- ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java | 3 +++ 1 file changed, 3 insertions(+) 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 3e8ba08d11..2b9a7930ad 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 @@ -1399,6 +1399,9 @@ public JobConf createConfiguration(HiveConf hiveConf, boolean skipAMConf) throws // TODO: convert this to a predicate too hiveConf.stripHiddenConfigurations(conf); + + // Remove hive configs which are used only in HS2 and not needed for execution + conf.unset(ConfVars.HIVE_AUTHORIZATION_SQL_STD_AUTH_CONFIG_WHITELIST.varname); return conf; } -- 2.17.2 (Apple Git-113)