This is an automated email from the ASF dual-hosted git repository.
gsaihemanth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new edc5f951027 HIVE-29293: Restrict config 'mapreduce.job.queuename' at
tez session (#6155)
edc5f951027 is described below
commit edc5f951027a50ca303b4f1cfe020770644dd861
Author: Sai Hemanth Gantasala
<[email protected]>
AuthorDate: Mon Jan 5 14:37:10 2026 -0800
HIVE-29293: Restrict config 'mapreduce.job.queuename' at tez session (#6155)
* HIVE-29293: Restrict config 'mapreduce.job.queuename' at tez session
* Address review comments
* Address test failures
* Address review comments
* indentation issue
---
.../org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java
b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java
index 41bc79c935f..70a57a52531 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionPoolManager.java
@@ -40,6 +40,8 @@
import org.apache.hadoop.hive.ql.wm.Trigger;
import org.apache.hadoop.hive.ql.wm.TriggerActionHandler;
import org.apache.hadoop.hive.shims.Utils;
+import org.apache.hadoop.mapred.JobContext;
+import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.tez.dag.api.TezConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -235,6 +237,10 @@ private TezSessionState getSession(HiveConf conf, boolean
doOpen) throws Excepti
// able to handle not being initialized. Perhaps we should get rid
of the instance and
// move the setupPool code to ctor. For now, at least
hasInitialSessions will be false.
String queueName = conf.get(TezConfiguration.TEZ_QUEUE_NAME);
+ String tezQueues = HiveConf.getVar(conf,
ConfVars.HIVE_SERVER2_TEZ_DEFAULT_QUEUES);
+ if ((queueName == null || queueName.isEmpty()) && (tezQueues == null ||
tezQueues.isEmpty())) {
+ queueName = conf.get(JobContext.QUEUE_NAME,
YarnConfiguration.DEFAULT_QUEUE_NAME);
+ }
boolean hasQueue = (queueName != null) && !queueName.isEmpty();
if (hasQueue) {
switch (customQueueAllowed) {