hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Lavelle (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HIVE-6852) JDBC client connections hang at TSaslTransport
Date Thu, 08 Sep 2016 14:47:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-6852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15474043#comment-15474043
] 

Shawn Lavelle edited comment on HIVE-6852 at 9/8/16 2:46 PM:
-------------------------------------------------------------

(SHARK 0.9.1, Hive 0.11)
Updating for CUSTOM authentication:


{code:title=Debug Output|borderStyle=solid}
16/09/08 09:36:48 DEBUG TSaslTransport: opening transport org.apache.thrift.transpor58
16/09/08 09:36:48 DEBUG TSaslClientTransport: Sending mechanism name PLAIN and initi
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Writing message with status START an
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Writing message with status COMPLETE
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Start message handled
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Main negotiation loop complete
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: SASL Client receiving last message
{code}

{code:title=Partial Stack Trace|borderStyle=solid}
"main" #1 prio=5 os_prio=0 tid=0x000000000049f800 nid=0x409c runnable [0x000000000024d000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:170)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        - locked <0x0000000716426228> (a java.io.BufferedInputStream)
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
        at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:288)
        at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
        at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:157)
{code}


was (Author: azeroth2b):
(SHARK 0.9.1, Hive 0.11)
Updating for CUSTOM authentication:

Debug Output
{quote}
16/09/08 09:36:48 DEBUG TSaslTransport: opening transport org.apache.thrift.transpor58
16/09/08 09:36:48 DEBUG TSaslClientTransport: Sending mechanism name PLAIN and initi
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Writing message with status START an
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Writing message with status COMPLETE
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Start message handled
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: Main negotiation loop complete
16/09/08 09:36:48 DEBUG TSaslTransport: CLIENT: SASL Client receiving last message
{quote}

Partial Stack Trace
{quote}
"main" #1 prio=5 os_prio=0 tid=0x000000000049f800 nid=0x409c runnable [0x000000000024d000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
        at java.net.SocketInputStream.read(SocketInputStream.java:170)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        - locked <0x0000000716426228> (a java.io.BufferedInputStream)
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
        at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
        at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:288)
        at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
        at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:157)
{quote}

> JDBC client connections hang at TSaslTransport
> ----------------------------------------------
>
>                 Key: HIVE-6852
>                 URL: https://issues.apache.org/jira/browse/HIVE-6852
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>            Reporter: jay vyas
>
> I've noticed that when there is an underlying issue in connecting a client to the JDBC
interface of the HiveServer2 to run queries, you get a hang after the thrift portion, at least
in certain scenarios: 
> Turning log4j to DEBUG, you can see the following when trying to get a connection using:
> {noformat}
>         Connection jdbc = DriverManager.getConnection(this.con,"hive","password");
>         "jdbc:hive2://localhost:10000/default",
> {noformat}
> The logs get to here before the hang :
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message