CommandProcessor.run
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.hadoop.hive.ql.processors.CommandProcessor.run(Showing top 10 results out of 315)

  • Common ways to obtain CommandProcessor
private void myMethod () {
CommandProcessor c =
  • new DeleteResourceProcessor()
  • new SetProcessor()
  • new AddResourceProcessor()
  • Smart code suggestions by Codota
}
origin: apache/hive

String commandArgs = command.substring(tokens[0].length()).trim();
CommandProcessorResponse response = commandProcessor.run(commandArgs);
int returnCode = response.getResponseCode();
if (returnCode != 0) {
origin: apache/hive

 ss.out.println(firstToken + " " + cmd_1);
CommandProcessorResponse res = proc.run(cmd_1);
if (res.getResponseCode() != 0) {
 ss.out.println("Query returned non-zero code: " + res.getResponseCode() +
origin: edwardcapriolo/hive_test

 ret = proc.run(cmd).getResponseCode();
 ((Driver) proc).getResults(out);
} catch (CommandNeedRetryException ex) {
 ret = proc.run(cmd_1).getResponseCode();
} catch (CommandNeedRetryException ex) {
 Logger.getLogger(HiveTestEmbedded.class.getName()).log(Level.SEVERE, null, ex);
origin: org.spark-project.hive/hive-service

@Override
public void runInternal() throws HiveSQLException {
 setState(OperationState.RUNNING);
 try {
  String command = getStatement().trim();
  String[] tokens = statement.split("\\s");
  String commandArgs = command.substring(tokens[0].length()).trim();
  CommandProcessorResponse response = commandProcessor.run(commandArgs);
  int returnCode = response.getResponseCode();
  if (returnCode != 0) {
   throw toSQLException("Error while processing statement", response);
  }
  Schema schema = response.getSchema();
  if (schema != null) {
   setHasResultSet(true);
   resultSchema = new TableSchema(schema);
  } else {
   setHasResultSet(false);
   resultSchema = new TableSchema();
  }
 } catch (HiveSQLException e) {
  setState(OperationState.ERROR);
  throw e;
 } catch (Exception e) {
  setState(OperationState.ERROR);
  throw new HiveSQLException("Error running query: " + e.toString(), e);
 }
 setState(OperationState.FINISHED);
}
origin: edwardcapriolo/hive_test

 processorResponse = proc.run(cmd);
} catch (CommandNeedRetryException ex) {
 logger.log(Level.SEVERE, null, ex);
 processorResponse = proc.run(cmd_1);
} catch (CommandNeedRetryException ex) {
 logger.log(Level.SEVERE, null, ex);
origin: kawaa/Beetest

  qq = query.trim();
cp.run(qq.trim());
origin: org.apache.hive/hive-service

String commandArgs = command.substring(tokens[0].length()).trim();
CommandProcessorResponse response = commandProcessor.run(commandArgs);
int returnCode = response.getResponseCode();
if (returnCode != 0) {
origin: org.spark-project.hive/hive-cli

 ss.out.println(firstToken + " " + cmd_1);
CommandProcessorResponse res = proc.run(cmd_1);
if (res.getResponseCode() != 0) {
 ss.out.println("Query returned non-zero code: " + res.getResponseCode() +
origin: org.apache.hive/hive-hwi

 queryRet.add(Integer.valueOf(proc.run(cmd_1).getResponseCode()));
} catch (CommandNeedRetryException e) {
origin: org.apache.hive/hive-cli

 ss.out.println(firstToken + " " + cmd_1);
CommandProcessorResponse res = proc.run(cmd_1);
if (res.getResponseCode() != 0) {
 ss.out.println("Query returned non-zero code: " + res.getResponseCode() +
org.apache.hadoop.hive.ql.processorsCommandProcessorrun

Popular methods of CommandProcessor

    Popular classes and methods

    • getSystemService (Context)
    • requestLocationUpdates (LocationManager)
    • getOriginalFilename (MultipartFile)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • BufferedInputStream (java.io)
      Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
    • EOFException (java.io)
      Thrown when a program encounters the end of a file or stream during an input operation.
    • Timestamp (java.sql)
      A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
    • SimpleDateFormat (java.text)
      Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
    • JTextField (javax.swing)
    • Join (org.hibernate.mapping)

    For IntelliJ IDEA,
    Android Studio or Eclipse

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