hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akshay Goyal" <>
Subject Re: Review Request 42134: More information to user on GetOperationStatus in Hive Server2 when query is still executing
Date Fri, 22 Jan 2016 10:25:08 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Jan. 22, 2016, 10:25 a.m.)

Review request for hive and Amareshwari Sriramadasu.


added test cases for taskstatus

Bugs: HIVE-4570

Repository: hive-git


Driver maintains list of running and runnable tasks although that info is not exposed outside.
It's kept locally in the driver's execute method. We can add Driver.getTaskStatuses() to return
status on all tasks (both running and runnable). Similarly, start and completion times for

Proposed changes are :

struct TGetOperationStatusResp {
  1: required TStatus status
  2: optional TOperationState operationState

  // If operationState is ERROR_STATE, then the following fields may be set
  // sqlState as defined in the ISO/IEF CLI specification
  3: optional string sqlState

  // Internal error code
  4: optional i32 errorCode

  // Error message
  5: optional string errorMessage

  // List of statuses of sub tasks
  6: optional string taskStatus

  // When was the operation started
  7: optional i64 operationStarted
  // When was the operation completed
  8: optional i64 operationCompleted


Diffs (updated)

  ql/src/java/org/apache/hadoop/hive/ql/ 75187cf 
  ql/src/java/org/apache/hadoop/hive/ql/ PRE-CREATION 
  ql/src/java/org/apache/hadoop/hive/ql/exec/ 40c89cb 
  ql/src/java/org/apache/hadoop/hive/ql/exec/mr/ b184b4e 
  service-rpc/if/TCLIService.thrift 0aa9d13 
  service/src/java/org/apache/hive/service/cli/ e45b828 
  service/src/java/org/apache/hive/service/cli/operation/ 8868ec1

  service/src/java/org/apache/hive/service/cli/operation/ 35b6c52

  service/src/java/org/apache/hive/service/cli/operation/ 8db2e62

  service/src/java/org/apache/hive/service/cli/operation/ d6f6280

  service/src/java/org/apache/hive/service/cli/operation/ a09b39a

  service/src/java/org/apache/hive/service/cli/operation/ 740b851 
  service/src/java/org/apache/hive/service/cli/operation/ 2a0fec2

  service/src/java/org/apache/hive/service/cli/operation/ f5a9771

  service/src/java/org/apache/hive/service/cli/operation/ 113eddf 
  service/src/java/org/apache/hive/service/cli/operation/ c8a69b9 
  service/src/java/org/apache/hive/service/cli/thrift/ 5f01165

  service/src/test/org/apache/hive/service/cli/ e78181a 




Akshay Goyal

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message