HiveSQLException.getErrorCode
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.hive.service.cli.HiveSQLException.getErrorCode(Showing top 9 results out of 315)

  • Common ways to obtain HiveSQLException
private void myMethod () {
HiveSQLException h =
  • Throwable cause;new HiveSQLException(cause)
  • String str;new HiveSQLException(str)
  • Throwable throwable;new HiveSQLException(throwable.getMessage(), cause)
  • AI code suggestions by Codota
}
origin: apache/hive

/**
  * Converts current object to a {@link TStatus} object
  * @return    a {@link TStatus} object
  */
 public TStatus toTStatus() {
  // TODO: convert sqlState, etc.
  TStatus tStatus = new TStatus(TStatusCode.ERROR_STATUS);
  tStatus.setSqlState(getSQLState());
  tStatus.setErrorCode(getErrorCode());
  tStatus.setErrorMessage(getMessage());
  tStatus.setInfoMessages(toString(this));
  return tStatus;
 }

origin: apache/hive

if (opException != null) {
 resp.setSqlState(opException.getSQLState());
 resp.setErrorCode(opException.getErrorCode());
 if (opException.getErrorCode() == 29999)
  resp.setErrorMessage(org.apache.hadoop.util.StringUtils.stringifyException(opException));
 else
origin: apache/hive

assertEquals(opStatus.getOperationException().getErrorCode(), 1);
origin: apache/hive

assertEquals(opStatus.getOperationException().getErrorCode(), 1);
origin: org.spark-project.hive/hive-service

@Override
public TGetOperationStatusResp GetOperationStatus(TGetOperationStatusReq req) throws TException {
 TGetOperationStatusResp resp = new TGetOperationStatusResp();
 try {
  OperationStatus operationStatus = cliService.getOperationStatus(
    new OperationHandle(req.getOperationHandle()));
  resp.setOperationState(operationStatus.getState().toTOperationState());
  HiveSQLException opException = operationStatus.getOperationException();
  if (opException != null) {
   resp.setSqlState(opException.getSQLState());
   resp.setErrorCode(opException.getErrorCode());
   resp.setErrorMessage(opException.getMessage());
  }
  resp.setStatus(OK_STATUS);
 } catch (Exception e) {
  LOG.warn("Error getting operation status: ", e);
  resp.setStatus(HiveSQLException.toTStatus(e));
 }
 return resp;
}
origin: org.spark-project.hive/hive-service

/**
 * Converts current object to a {@link TStatus} object
 * @return    a {@link TStatus} object
 */
public TStatus toTStatus() {
 // TODO: convert sqlState, etc.
 TStatus tStatus = new TStatus(TStatusCode.ERROR_STATUS);
 tStatus.setSqlState(getSQLState());
 tStatus.setErrorCode(getErrorCode());
 tStatus.setErrorMessage(getMessage());
 tStatus.setInfoMessages(toString(this));
 return tStatus;
}
origin: org.apache.hive/hive-service

if (opException != null) {
 resp.setSqlState(opException.getSQLState());
 resp.setErrorCode(opException.getErrorCode());
 resp.setErrorMessage(org.apache.hadoop.util.StringUtils.
   stringifyException(opException));
origin: org.apache.lens/lens-driver-hive

status.setStatusMessage("Query execution failed!");
status.setErrorMessage(
 "Query failed with errorCode:" + opStatus.getOperationException().getErrorCode() + " with errorMessage: "
  + opStatus.getOperationException().getMessage());
break;
origin: org.apache.hive/hive-service

/**
  * Converts current object to a {@link TStatus} object
  * @return    a {@link TStatus} object
  */
 public TStatus toTStatus() {
  // TODO: convert sqlState, etc.
  TStatus tStatus = new TStatus(TStatusCode.ERROR_STATUS);
  tStatus.setSqlState(getSQLState());
  tStatus.setErrorCode(getErrorCode());
  tStatus.setErrorMessage(getMessage());
  tStatus.setInfoMessages(toString(this));
  return tStatus;
 }

org.apache.hive.service.cliHiveSQLExceptiongetErrorCode

Popular methods of HiveSQLException

  • <init>
  • getMessage
  • getCause
  • getSQLState
  • toCause
    Converts a flattened list of texts including the stack trace and the stack traces of the nested caus
  • toString
  • toTStatus
    Converts the specified Exception object into a TStatus object
  • enroll
  • initCause
  • newInstance
  • toStackTrace
  • printStackTrace
  • toStackTrace,
  • printStackTrace

Popular classes and methods

  • getSharedPreferences (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Connection (java.sql)
    A connection (session) with a specific database. SQL statements are executed and results are returne
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)