Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-24-2017 04:32 PM - edited 08-17-2019 06:13 PM
Attempting to instantiate a JDBC connection to HiveServer2 Interactive results with the attached error.
Error text:
Could not open client transport with JDBC Uri: jdbc:hive2://127.0.0.1:36467/poc: Failed to open new session: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.resultset.default.fetch.size does not exists. Failed to open new session: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.resultset.default.fetch.size does not exists. Failed to open new session: java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.resultset.default.fetch.size does not exists. java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.resultset.default.fetch.size does not exists. java.lang.IllegalArgumentException: hive configuration hive.server2.thrift.resultset.default.fetch.size does not exists.
Created 08-24-2017 04:46 PM
This parameter "hive.server2.thrift.resultset.default.fetch.size" is added recently. As part of https://issues.apache.org/jira/browse/HIVE-14901
So i am suspecting that on the client/server side you might be using a different version of "hive-jdbc-xxx.jar" Or another Jar of different version which contains the class "org.apache.hadoop.hive.conf.HiveConf"
.
Can you please share more details about your environment, The Hive Version and the JARs versions that you are using?
Created 08-24-2017 04:46 PM
This parameter "hive.server2.thrift.resultset.default.fetch.size" is added recently. As part of https://issues.apache.org/jira/browse/HIVE-14901
So i am suspecting that on the client/server side you might be using a different version of "hive-jdbc-xxx.jar" Or another Jar of different version which contains the class "org.apache.hadoop.hive.conf.HiveConf"
.
Can you please share more details about your environment, The Hive Version and the JARs versions that you are using?
Created 08-24-2017 05:20 PM
You're absolutely correct, I hadn't even looked at that. I was using ver 2.3 of the Hive JDBC driver. Downgrading to 2.2 worked like a charm. Thanks!