Skip to content

Commit

Permalink
Update ThriftCLIService.java
Browse files Browse the repository at this point in the history
HIVE-24944: When the default engine of the hiveserver is MR and the tez engine is set by the client, the client TEZ progress log cannot be printed normally(ZhangQidong reviewed by Zhihua Deng)
  • Loading branch information
Qidong-Zhang committed Jun 17, 2021
1 parent eb1a21d commit 0b2f11a
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,15 @@ public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) th
.getParentSession()
.getHiveConf()
.getVar(ConfVars.HIVE_EXECUTION_ENGINE);
if ("tez".equals(engineInSessionConf)) {
mapper = new TezProgressMonitorStatusMapper();
}
if ("spark".equals(engineInSessionConf)) {
mapper = new SparkProgressMonitorStatusMapper();
switch (engineInSessionConf) {
case "tez":
mapper = new TezProgressMonitorStatusMapper();
break;
case "spark":
mapper = new SparkProgressMonitorStatusMapper();
break;
default:
break;
}
TJobExecutionStatus executionStatus =
mapper.forStatus(progressUpdate.status);
Expand Down

0 comments on commit 0b2f11a

Please sign in to comment.