@Override
  public TUploadDataResp UploadData(TUploadDataReq req) throws TException {
    TUploadDataResp resp = new TUploadDataResp();
    try {
      SessionHandle sessionHandle = new SessionHandle(req.getSessionHandle());
      OperationHandle operationHandle = cliService.uploadData(
          sessionHandle,
          req.bufferForValues(),
          req.getTableName(),
          req.getPath());
      resp.setOperationHandle(operationHandle.toTOperationHandle());
      resp.setStatus(OK_STATUS);
    } catch (Exception e) {
      LOG.warn("Error UploadData: ", e);
      resp.setStatus(HiveSQLException.toTStatus(e));
    }
    return resp;
  }
Create a session handle
@param req
@param res
@return
@throws HiveSQLException
@throws LoginException
@throws IOException
service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java