Hive Task Failed to Run on the Client but Successful on Yarn
Symptom
When a Hive task fails to be executed, an error message similar to the following is displayed on the client:
Error:Invalid OperationHandler:OperationHander [opType=EXECUTE_STATEMENT,getHandleIdentifier()=XXX](state=,code=0)
However, the MapReduce task that is submitted by the task to Yarn is successfully executed.

Cause Analysis
2017-02-15 14:40:11,309 | INFO | main | STARTUP_MSG: /************************************************************ STARTUP_MSG: Starting HiveServer2 STARTUP_MSG: host = XXX-120-85-154/XXX.120.85.154 STARTUP_MSG: args = [] STARTUP_MSG: version = 1.3.0
Solution
Submit the task again and ensure that the HiveServer process is not manually restarted during task execution.