hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thejas Nair <the...@hortonworks.com>
Subject Re: Hive jdbc access to HiveServer2. How to debug?
Date Fri, 11 Apr 2014 19:00:44 GMT
This hanging issue has been seen when there is a mismatch between the
auth modes of HS2 server and client  (usually SASL vs NOSASL).


On Sun, Apr 6, 2014 at 5:40 AM, Jay Vyas <jayunit100@gmail.com> wrote:
> Hi hive.
>
> I cant run JDBC queries against HiveServer2.  It appears the client is
> connecting to the thrift service, but after the "negotiation loop" is
> complete, no more messages occur, and the call to "getConnection()" in my
> program just hangs.
>
> Any thoughts on how to get more info about what is hanging after the last
> call in the logs of TSaslTransport below?
>
> Connect:  jdbc:hive2://localhost:10000/default... getting connection
> timeout=0
>
> 0    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - opening
> transport org.apache.thrift.transport.TSaslClientTransport@219ba640
> 0 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - opening
> transport org.apache.thrift.transport.TSaslClientTransport@219ba640
> 3    [main] DEBUG org.apache.thrift.transport.TSaslClientTransport  -
> Sending mechanism name PLAIN and initial response of length 14
> 3 [main] DEBUG org.apache.thrift.transport.TSaslClientTransport  - Sending
> mechanism name PLAIN and initial response of length 14
> 5    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT:
> Writing message with status START and payload length 5
> 5 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: Writing
> message with status START and payload length 5
> 5    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT:
> Writing message with status COMPLETE and payload length 14
> 5 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: Writing
> message with status COMPLETE and payload length 14
> 5    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT:
> Start message handled
> 5 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: Start
> message handled
> 5    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: Main
> negotiation loop complete
> 5 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: Main
> negotiation loop complete
> 6    [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: SASL
> Client receiving last message
> 6 [main] DEBUG org.apache.thrift.transport.TSaslTransport  - CLIENT: SASL
> Client receiving last message
>
> (now what)?.... at this point, the code just hangs.
>
> --
> Jay Vyas
> http://jayunit100.blogspot.com

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Mime
View raw message