Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-12771

HiveServer2 HiveTemplate running HiveStatement.execute throw java.lang.NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.2.1
    • None
    • Clients
    • None
    • apache hive 1.2.1
      jdk7

    Description

      when I use HiveTemplate to select hive table,then my program log throws exception, the details are as follow:

      java.sql.SQLException: java.lang.NullPointerException
      at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:311)
      at org.apache.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:392)
      at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
      at org.datanucleus.store.rdbms.datasource.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
      at com.xxx.analysis.hadoop.xxx.hive.utils.HiveTemplate.executeQuery(HiveTemplate.java:56)

      any help will be appreciated!

      Attachments

        Activity

          People

            vgumashta Vaibhav Gumashta
            dailidong dailidong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: