Created 09-21-2017 11:20 PM
I have setup the HDP 2.6 cluster and primarily using the hive. Have created the hive database and hive tables. When I tried to connect to the hiveserver using hive-jdbc and seeing the above error. Tried to search google for help but no luck.
I am using the following jdbc driver:
I was seeing this error while trying to connect from BI, and wrote a simple JDBC client code and seeing the same error from the this client code too..
Here is the exception stack trace from the client code.
org.apache.hive.org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{use:database=default}) at org.apache.hive.org.apache.thrift.TApplicationException.read(TApplicationException.java:111) ~[hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) ~[hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.service.rpc.thrift.TCLIService$Client.recv_OpenSession(TCLIService.java:168) ~[hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.service.rpc.thrift.TCLIService$Client.OpenSession(TCLIService.java:155) ~[hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.jdbc.HiveConnection.openSession(HiveConnection.java:578) [hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:188) [hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107) [hive-jdbc-2.1.0.2.6.2.0-205-standalone.jar:2.1.0.2.6.2.0-205] at java.sql.DriverManager.getConnection(DriverManager.java:664) [?:1.8.0_144] at java.sql.DriverManager.getConnection(DriverManager.java:270) [?:1.8.0_144]
Looks like
Created 09-22-2017 02:44 AM
@Bala Kolla can you please update the query with jdbc connection string, issue might be with the connection string parameters or the second possible issue could be with version mismatch. can you use the hive-jdbc jar provided by HDP installable rather than donwloading from web ?
Created 02-19-2018 03:40 PM
Looks like this is something to do with the driver.. I am not seeing this error anymore once I switched the driver to
hive-jdbc-1.2.xxxx.
I am suspecting that cognos is not compatible with the hive-jdbc-2.x