hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Atul Paldhikar (apaldhik)" <>
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 !

- Atul

From: Atul Paldhikar (apaldhik)
Sent: Monday, December 01, 2014 1:50 PM
Subject: JDBC/beeline client hangs with HiverServer2 (0.13.1)


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
        at org.apache.thrift.transport.TTransport.readAll(
        at org.apache.thrift.protocol.TBinaryProtocol.readAll(
        at org.apache.thrift.protocol.TBinaryProtocol.readI32(
        at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(
        at org.apache.thrift.TServiceClient.receiveBase(
        at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_OpenSession(
        at org.apache.hive.service.cli.thrift.TCLIService$Client.OpenSession(
        at org.apache.hive.jdbc.HiveConnection.openSession(
        at org.apache.hive.jdbc.HiveConnection.<init>(
        at org.apache.hive.jdbc.HiveDriver.connect(
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(

- Atul

View raw message