Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-637

get NullPointerException when create database using thriftserver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • Thriftserver
    • None

    Description

      When I connected thriftserver with spark beeline. NullPointerException occurs when  execute the following SQL. This exception does not affect the final execution result.

      create database test;

      use test;

      drop database test;

      0: jdbc:hive2://localhost:10090> create database test;
      java.lang.NullPointerException
      at org.apache.hive.service.cli.ColumnBasedSet.<init>(ColumnBasedSet.java:50)
      at org.apache.hive.service.cli.RowSetFactory.create(RowSetFactory.java:37)
      at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:368)
      at org.apache.hive.beeline.BufferedRows.<init>(BufferedRows.java:42)
      at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1794)
      at org.apache.hive.beeline.Commands.execute(Commands.java:860)
      at org.apache.hive.beeline.Commands.sql(Commands.java:713)
      at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:973)
      at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:813)
      at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:771)
      at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:484)
      at org.apache.hive.beeline.BeeLine.main(BeeLine.java:467)
      Error: Error retrieving next row (state=,code=0)

       0: jdbc:hive2://localhost:10090> use test;
      java.lang.NullPointerException
      at org.apache.hive.service.cli.ColumnBasedSet.<init>(ColumnBasedSet.java:50)
      at org.apache.hive.service.cli.RowSetFactory.create(RowSetFactory.java:37)
      at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:368)
      at org.apache.hive.beeline.BufferedRows.<init>(BufferedRows.java:42)
      at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1794)
      at org.apache.hive.beeline.Commands.execute(Commands.java:860)
      at org.apache.hive.beeline.Commands.sql(Commands.java:713)
      at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:973)
      at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:813)
      at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:771)
      at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:484)
      at org.apache.hive.beeline.BeeLine.main(BeeLine.java:467)
      Error: Error retrieving next row (state=,code=0)

      0: jdbc:hive2://localhost:10090> drop database test;
      java.lang.NullPointerException
      at org.apache.hive.service.cli.ColumnBasedSet.<init>(ColumnBasedSet.java:50)
      at org.apache.hive.service.cli.RowSetFactory.create(RowSetFactory.java:37)
      at org.apache.hive.jdbc.HiveQueryResultSet.next(HiveQueryResultSet.java:368)
      at org.apache.hive.beeline.BufferedRows.<init>(BufferedRows.java:42)
      at org.apache.hive.beeline.BeeLine.print(BeeLine.java:1794)
      at org.apache.hive.beeline.Commands.execute(Commands.java:860)
      at org.apache.hive.beeline.Commands.sql(Commands.java:713)
      at org.apache.hive.beeline.BeeLine.dispatch(BeeLine.java:973)
      at org.apache.hive.beeline.BeeLine.execute(BeeLine.java:813)
      at org.apache.hive.beeline.BeeLine.begin(BeeLine.java:771)
      at org.apache.hive.beeline.BeeLine.mainWithInputRedirection(BeeLine.java:484)
      at org.apache.hive.beeline.BeeLine.main(BeeLine.java:467)
      Error: Error retrieving next row (state=,code=0)

       

      Attachments

        1. use.png
          192 kB
          mingchao zhao
        2. drop.png
          217 kB
          mingchao zhao
        3. create.png
          174 kB
          mingchao zhao

        Issue Links

          Activity

            People

              micahzhao mingchao zhao
              micahzhao mingchao zhao
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h
                  4h