[
https://issues.apache.org/jira/browse/HIVE-23722?focusedWorklogId=448481&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-448481
]
ASF GitHub Bot logged work on HIVE-23722:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jun/20 13:43
Start Date: 19/Jun/20 13:43
Worklog Time Spent: 10m
Work Description: kgyrtkirk commented on a change in pull request #1145:
URL: https://github.com/apache/hive/pull/1145#discussion_r442838789
##########
File path: service/src/java/org/apache/hive/service/cli/operation/Operation.java
##########
@@ -452,4 +452,8 @@ public String getQueryTag() {
public String getQueryId() {
return queryState.getQueryId();
}
+
+ public boolean showOperationDrilldownLink() {
Review comment:
I don't feel that this method should be closely connected to this
interface
##########
File path: service/src/java/org/apache/hive/service/cli/CLIService.java
##########
@@ -149,6 +149,10 @@ public UserGroupInformation getHttpUGI() {
return this.httpUGI;
}
+ public HiveServer2 getHiveServer2() {
Review comment:
instead of giving access to the HiveServer2 object: how about a method
like `getWebServerUrl()` ?
##########
File path:
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -569,7 +569,19 @@ public TExecuteStatementResp
ExecuteStatement(TExecuteStatementReq req) throws T
queryTimeout) : cliService.executeStatement(sessionHandle,
statement, confOverlay,
queryTimeout);
resp.setOperationHandle(operationHandle.toTOperationHandle());
- resp.setStatus(OK_STATUS);
+ Operation operation =
cliService.getSessionManager().getOperationManager()
+ .getOperation(operationHandle);
+ if (operation.showOperationDrilldownLink() &&
cliService.getHiveServer2().getWebServerUrl() != null) {
Review comment:
I think this should be moved to somewhere around
`CliService#executeStatement`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 448481)
Time Spent: 20m (was: 10m)
> Show the operation's drilldown link to client
> ---------------------------------------------
>
> Key: HIVE-23722
> URL: https://issues.apache.org/jira/browse/HIVE-23722
> Project: Hive
> Issue Type: Improvement
> Reporter: Zhihua Deng
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Now the HiveServer2 webui provides a drilldown link for many collected
> metrics or messages about a operation, but it's not easy for a end user to
> find the target url of his submitted query. Less knowledge on the deployment,
> HA based environment, and the multiple running queries can make things more
> difficult. The jira provides a way to show the link to the interested end
> user when enabled.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)