Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI apache#5480] Support setting kyuubi hive jdbc client protocol…
… version ### _Why are the changes needed?_ When using Kyuubi Hive JDBC to Hive Server2, TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V10 is used and can not be changed. When we connected to Hive Server2 with version lower than 2.2.0, we got the following error: ``` org.apache.kyuubi.shade.org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{kyuubi.client.version=1.7.3, set:hiveconf:hive.server2.thrift.resultset.default.fetch.size=1000, kyuubi.client.ipAddress=172.16.19.113, use:database=default}) ``` In this PR, we introduced a session conf `clientProtocolVersion`. By adding `clientProtocolVersion=8` to jdbc url, the error got fixed. Changes of `kyuubi_jdbc.rst` <img width="867" alt="image" src="https://github.com/apache/kyuubi/assets/88070094/8f98edf9-15c4-4d1b-9299-83b24136352b"> ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [x] Manual tests against Hive Server2 version 2.1.1-cdh6.3.0 - [x] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request ### _Was this patch authored or co-authored using generative AI tooling?_ No. Closes apache#5480 from zhouyifan279/protocol-version. Closes apache#5480 0ee7b1f [zhouyifan279] Support setting kyuubi hive jdbc client protocol version 61b8038 [zhouyifan279] Support setting kyuubi hive jdbc client protocol version ed4c29f [Cheng Pan] Update docs/deployment/migration-guide.md dc16a05 [zhouyifan279] Support setting kyuubi hive jdbc client protocol version 1a6bfd8 [zhouyifan279] Support setting kyuubi hive jdbc client protocol version cb00edc [zhouyifan279] Support setting kyuubi hive jdbc client protocol version c99fc48 [zhouyifan279] Support setting kyuubi hive jdbc client protocol version Lead-authored-by: zhouyifan279 <[email protected]> Co-authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
- Loading branch information