[ 
https://issues.apache.org/jira/browse/HIVE-21730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sankar Hariappan reassigned HIVE-21730:
---------------------------------------


> HiveStatement.getQueryId throws TProtocolException when response is null.
> -------------------------------------------------------------------------
>
>                 Key: HIVE-21730
>                 URL: https://issues.apache.org/jira/browse/HIVE-21730
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>            Priority: Major
>
> HiveStatement.getQueryId is failing with below exception.
> {code}
> 24256 2019-05-14T02:09:01,355  INFO [HiveServer2-Background-Pool: 
> Thread-1829] ql.Driver: Executing 
> command(queryId=hive_20190514020858_530a33d9-0b19-4f72-ae08-b631fb4749cb): 
> create table household_demographics
>  24257 stored as orc as
>  24258 select * from household_demographics_txt
>  24259 2019-05-14T02:09:01,356  INFO [HiveServer2-Background-Pool: 
> Thread-1829] hooks.HiveProtoLoggingHook: Received pre-hook notification for: 
> hive_20190514020858_530a33d9-0b19-4f72-ae08-b631fb4749cb
>  24260 2019-05-14T02:09:01,356 ERROR [HiveServer2-Handler-Pool: Thread-131] 
> server.TThreadPoolServer: Thrift error occurred during processing of message.
>  24261 org.apache.thrift.protocol.TProtocolException: Required field 
> 'queryId' is unset! Struct:TGetQueryIdResp(queryId:null)
>                                                                               
>                                                                               
>                                                                 24216,1       
> 10%
>  24260 2019-05-14T02:09:01,356 ERROR [HiveServer2-Handler-Pool: Thread-131] 
> server.TThreadPoolServer: Thrift error occurred during processing of message.
>  24261 org.apache.thrift.protocol.TProtocolException: Required field 
> 'queryId' is unset! Struct:TGetQueryIdResp(queryId:null)
>  24262         at 
> org.apache.hive.service.rpc.thrift.TGetQueryIdResp.validate(TGetQueryIdResp.java:294)
>  ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24263         at 
> org.apache.hive.service.rpc.thrift.TCLIService$GetQueryId_result.validate(TCLIService.java:18890)
>  ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24264         at 
> org.apache.hive.service.rpc.thrift.TCLIService$GetQueryId_result$GetQueryId_resultStandardScheme.write(TCLIService.java:18947)
>  ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24265         at 
> org.apache.hive.service.rpc.thrift.TCLIService$GetQueryId_result$GetQueryId_resultStandardScheme.write(TCLIService.java:18916)
>  ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24266         at 
> org.apache.hive.service.rpc.thrift.TCLIService$GetQueryId_result.write(TCLIService.java:18867)
>  ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24267         at 
> org.apache.thrift.ProcessFunction.process(ProcessFunction.java:53) 
> ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24268         at 
> org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) 
> ~[hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24269         at 
> org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpAddressProcessor.java:56)
>  ~[hive-service-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24270         at 
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:286)
>  [hive-exec-2.1.0.2.6.5.1150-19.jar:2.1.0.2.6.5.1150-19]
>  24271         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>  [?:1.8.0_161]
>  24272         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>  [?:1.8.0_161]
>  24273         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to