[ 
https://issues.apache.org/jira/browse/HIVE-4563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668009#comment-13668009
 ] 

Carl Steinbach commented on HIVE-4563:
--------------------------------------

bq. ... the link you supplied suggests that there already is a possibility to 
tell if the query I have issued is still running.

You can do this with the current HS2 API by opening a second thread/connection 
from which you call GetOperationStatus using the session id obtained in the 
first thread. If this doesn't make sense please research how JDBC does 
asynchronous queries -- it's the same basic strategy.
                
> Hive thrift monitor query
> -------------------------
>
>                 Key: HIVE-4563
>                 URL: https://issues.apache.org/jira/browse/HIVE-4563
>             Project: Hive
>          Issue Type: Wish
>          Components: HiveServer2, Thrift API
>         Environment: Windows, CSharp client
>            Reporter: Pavel Janečka
>
> Hi, I wonder if there is any possibility to add support for fetching states 
> of running queries and optionally killing them before they actually end. I 
> use generated CSharp thrift client TCLIservice for hiveserver2 (tried also a 
> client for the hiveserver), but the query can be accessed only after it have 
> finished running. I need to be able to check on the running queries before 
> they end.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to