[ https://issues.apache.org/jira/browse/HIVE-15574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vihang Karajgaonkar reassigned HIVE-15574: ------------------------------------------ Assignee: Vihang Karajgaonkar > Beeline '-f <file>' finishes correctly but with a NullPointerException > ---------------------------------------------------------------------- > > Key: HIVE-15574 > URL: https://issues.apache.org/jira/browse/HIVE-15574 > Project: Hive > Issue Type: Bug > Components: Beeline > Affects Versions: 2.2.0 > Reporter: Sergio Peña > Assignee: Vihang Karajgaonkar > Priority: Minor > > {noformat} > $ ./execute-hive.sh --service beeline -u jdbc:hive2://localhost:10000 -f > /tmp/a.sql > SLF4J: Class path contains multiple SLF4J bindings. > SLF4J: Found binding in > [jar:file:/home/ubuntu/hive/packaging/target/apache-hive-2.2.0-SNAPSHOT-bin/apache-hive-2.2.0-SNAPSHOT-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: Found binding in > [jar:file:/opt/hadoop/hadoop-2.6.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an > explanation. > SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] > Connecting to jdbc:hive2://localhost:10000 > Connected to: Apache Hive (version 2.2.0-SNAPSHOT) > Driver: Hive JDBC (version 2.2.0-SNAPSHOT) > Transaction isolation: TRANSACTION_REPEATABLE_READ > 0: jdbc:hive2://localhost:10000> select * from table1; > +------------+--------------+ > | table1.id | table1.part | > +------------+--------------+ > | 1 | 1 | > | 2 | 2 | > +------------+--------------+ > 2 rows selected (0.254 seconds) > 0: jdbc:hive2://localhost:10000> > 0: jdbc:hive2://localhost:10000> > Closing: 0: jdbc:hive2://localhost:10000 > 17/01/10 16:33:38 [Thread-1]: WARN util.ShutdownHookManager: ShutdownHook '' > failed, java.lang.NullPointerException > java.lang.NullPointerException > at org.apache.hive.beeline.BeeLine$1.run(BeeLine.java:1247) > ~[hive-beeline-2.2.0-SNAPSHOT.jar:2.2.0-SNAPSHOT] > at > org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54) > [hadoop-common-2.6.1.jar:?] > {format} -- This message was sent by Atlassian JIRA (v6.3.4#6332)