@Test
  public void testSetHplsqlOnErrorStop() throws Throwable {
    String scriptText =
        "SET hplsql.onerror='stop';\n" +
            "insert into abc values('Tbl Not Exists');\n" +
            "SELECT CURRENT_USER;";
    testScriptFile(scriptText, args(), "^(.(?!(" + System.getProperty("user.name") + ")))*$");
  }
Start up a local Hive Server 2 for these tests
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java