hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atul Paldhikar (apaldhik)" <apald...@cisco.com>
Subject RE: JDBC/beeline client hangs with HiverServer2 (0.13.1)
Date Tue, 02 Dec 2014 18:08:25 GMT
Trying again, any pointers is really appreciated !

Thanks
- Atul

From: Atul Paldhikar (apaldhik)
Sent: Monday, December 01, 2014 1:50 PM
To: user@hive.apache.org
Subject: JDBC/beeline client hangs with HiverServer2 (0.13.1)

Hi,

I am trying to connect to Hive via JDBC client (Java code) but the connection hands forever.
The same issue with beeline client also. I did google around and add "auth=noSasl" to my JDBC
URL but still no luck.

HiveServer2 startup :

nohup hive --service hiveserver2

Beeline client :

beeline>!connect jdbc:hive2://finattr-comp-dev-01:10000/default;auth=noSasl "" "" org.apache.hive.jdbc.HiveDriver
Connecting to jdbc:hive2://finattr-comp-dev-01:10000/default;auth=noSasl
14/12/01 13:47:35 ERROR jdbc.HiveConnection: Error opening session
org.apache.thrift.transport.TTransportException
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
        at org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
        at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:378)
        at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:297)
        at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:204)
        at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:69)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_OpenSession(TCLIService.java:156)
        at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(TCLIService.java:143)
        at org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:415)
        at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:193)
        at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:187)

Thanks
- Atul

Mime
View raw message