public boolean run(String line) {
    String[] parts = beeLine.split(line, 2, "Usage: run <scriptfile>");
    if (parts == null) {
      return false;
    }

    try {
      String[] cmds = beeLine.getCommands(new File(parts[1]));
      // success only if all the commands were successful
      return beeLine.runCommands(cmds) == cmds.length;
    } catch (Exception e) {
      return beeLine.error(e);
    }
  }
Run a script from the specified file.
beeline/src/java/org/apache/hive/beeline/Commands.java