Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-500

HiveServer2 throws NullPointerException when using Thrift

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CDH4.3.0
    • Fix Version/s: CDH4.4.0
    • Component/s: Hive
    • Labels:
      None
    • Environment:
      Ubuntu 12.04, Ruby Thrift client

      Description

      When using HiveServer2's Thrift interface, any attempt to send a query results in a NullPointerException with the following stack trace:

      java.lang.NullPointerException
      at org.apache.hive.service.cli.operation.ExecuteStatementOperation.newExecuteStatementOperation(ExecuteStatementOperation.java:78)
      at org.apache.hive.service.cli.operation.OperationManager.newExecuteStatementOperation(OperationManager.java:79)
      at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatement(HiveSessionImpl.java:187)
      at org.apache.hive.service.cli.CLIService.executeStatement(CLIService.java:154)
      at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:190)
      at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1193)
      at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1178)
      at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
      at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
      at org.apache.hive.service.cli.thrift.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:38)
      at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:206)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      at java.lang.Thread.run(Thread.java:662)

      I've reverted to the Hive version shipped with 4.2.0, and it doesn't throw this stacktrace.

        Attachments

          Activity

            People

            • Assignee:
              prasadm Prasad Mujumdar
              Reporter:
              andysykes Andy Sykes
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: