hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carter Shanklin (JIRA)" <>
Subject [jira] [Created] (HIVE-17024) HPL/SQL: CLI fails to exit after NPE using embedded connection
Date Tue, 04 Jul 2017 21:22:01 GMT
Carter Shanklin created HIVE-17024:

             Summary: HPL/SQL: CLI fails to exit after NPE using embedded connection
                 Key: HIVE-17024
             Project: Hive
          Issue Type: Bug
          Components: hpl/sql
            Reporter: Carter Shanklin
            Priority: Critical

This bug is part of a series of issues and surprising behavior I encountered writing a reporting
script that would aggregate values and give rows different classifications based on an the
aggregate. Addressing some or all of these issues would make HPL/SQL more accessible to newcomers.
This happened during the error reported in XXX (bug TBD)

Script is this:
create table if not exists test1(col1 integer);
create table if not exists test2(col1 double);
create table if not exists test3(col1 decimal(10, 4));
create table if not exists test4(col1 string);
create table if not exists test5(col1 varchar(20));

Output is this:
[vagrant@trunk hplsql]$ hplsql -f temp3.sql
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/vagrant/hivedist/apache-hive-3.0.0-SNAPSHOT-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
Open connection: jdbc:hive2:// (5.83 sec)
Starting query
Query executed successfully (2.31 sec)
Exception in thread "main" java.lang.NullPointerException
        at org.apache.hive.hplsql.Exec.evalPop(
        at org.apache.hive.hplsql.Stmt.createTableDefinition(
        at org.apache.hive.hplsql.Stmt.createTable(
        at org.apache.hive.hplsql.Exec.visitCreate_table_stmt(
        at org.apache.hive.hplsql.Exec.visitCreate_table_stmt(
        at org.apache.hive.hplsql.HplsqlParser$Create_table_stmtContext.accept(
        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(
        at org.apache.hive.hplsql.Exec.visitStmt(
        at org.apache.hive.hplsql.Exec.visitStmt(
        at org.apache.hive.hplsql.HplsqlParser$StmtContext.accept(
        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(
        at org.apache.hive.hplsql.HplsqlBaseVisitor.visitBlock(
        at org.apache.hive.hplsql.HplsqlParser$BlockContext.accept(
        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(
        at org.apache.hive.hplsql.Exec.visitProgram(
        at org.apache.hive.hplsql.Exec.visitProgram(
        at org.apache.hive.hplsql.HplsqlParser$ProgramContext.accept(
        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(
        at org.apache.hive.hplsql.Hplsql.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(

I attached a jstack.

When I use a Hiveserver2 connection instead, I get an NPE but it doesn't hang (at least not
on the client side)

Version = 3.0.0-SNAPSHOT r71f52d8ad512904b3f2c4f04fe39a33f2834f1f2

This message was sent by Atlassian JIRA

View raw message