hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Zhang (JIRA)" <>
Subject [jira] [Created] (HIVE-11274) Support executing script file from hdfs in beeline
Date Thu, 16 Jul 2015 01:50:04 GMT
Jeff Zhang created HIVE-11274:

             Summary: Support executing script file from hdfs in beeline
                 Key: HIVE-11274
             Project: Hive
          Issue Type: Improvement
            Reporter: Jeff Zhang

It is supported for cli to execute hive script on hdfs, it should be straightforward to support
it in beeline too.
  private int executeFile(String fileName) {
    FileInputStream initStream = null;
    try {
      initStream = new FileInputStream(fileName);
      return execute(getConsoleReader(initStream), true);
    } catch (Throwable t) {
      return ERRNO_OTHER;
    } finally {
      consoleReader = null;
      output("");   // dummy new line

This message was sent by Atlassian JIRA

View raw message