diff --git service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java index 886492a..2938338 100644 --- service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java +++ service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java @@ -641,7 +641,8 @@ public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) th if (opException != null) { resp.setSqlState(opException.getSQLState()); resp.setErrorCode(opException.getErrorCode()); - resp.setErrorMessage(opException.getMessage()); + resp.setErrorMessage(org.apache.hadoop.util.StringUtils. + stringifyException(opException)); } resp.setStatus(OK_STATUS); } catch (Exception e) {