kyuubi/docs
SteNicholas 770499ca54
[KYUUBI #1948] Upgrade thrift version to 0.16.0
### _Why are the changes needed?_

Upgrade libthrift to 0.16.0 due to [CVE-2020-13949](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13949) and the coming upstream change of Spark https://github.com/apache/spark/pull/34362

### _What changed in this PR?_

- Upgrade libthrift to 0.16.0

- Shade and relocate `thrift` and `hive-service-rpc` classes in `kyuubi-spark-engine`, it's necessary to avoide conflicting with old thrift libs bundled in Spark binary releases.

- Due to thrift change the method signature, the subclasses those interfaces in Kyuubi also need to modify to pass compile.
We rely on Hive 2.3.9 jars in some components, e.g. `kyuubi-hive-jdbc`, `LocalMetaServer` in `kyuubi-server` test classes.

Some classes in Hive jars compiled against old thrift interfaces which are not compatible with thrift 0.16.0, it causes runtime link error, we found the following classes which breaks the test and copied them with necessary modification to make it work with thrift 0.16.0.

    - `TFramedTransport`
    - `TFilterTransport`
    - `TUGIAssumingTransport`
    - `TUGIContainingTransport`

- Next Steps, I think it's worth to do in separated PRs.

    - Recover the `HiveDelegationTokenProviderSuite`, one approach is use an isolate classloader to load HMS classes and thrift 0.9.3 classes from Maven, this approach can also be used for the planed Zoopkeeper upgrading to help us verficating the compatibility of Zookeeper Server 3.4.x.
    - Rewrite `kyuubi-hive-jdbc` to make it decouple with Hive jars, because there maybe other places which may not work with thrift 0.16.0 but the UTs does not cover.

### _How was this patch tested?_
- [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [ ] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #1953 from SteNicholas/KYUUBI-1948.

Closes #1948

de5d1ea2 [SteNicholas] [KYUUBI #1948] Upgrade thrift version to 0.16.0
898effcd [SteNicholas] [KYUUBI #1948] Upgrade thrift version to 0.16.0
803e270c [SteNicholas] [KYUUBI #1948] Upgrade thrift version to 0.16.0

Authored-by: SteNicholas <programgeek@163.com>
Signed-off-by: Kent Yao <yao@apache.org>
2022-02-23 20:51:59 +08:00
..
_static/css [KYUUBI #1889] Improve the user experience of the configuration parameters of the document 2022-02-11 09:29:50 +08:00
appendix [KYUUBI #1347] [DOC] Fix miscellaneous doc typos 2021-11-08 09:27:37 +08:00
client [KYUUBI #1831] [DOCS] Fix the jdbc connection url format doc 2022-01-25 10:03:45 +08:00
community [KYUUBI #1876] Set Spark 3.2.1 as default 2022-02-16 00:54:25 +08:00
deployment [KYUUBI #1948] Upgrade thrift version to 0.16.0 2022-02-23 20:51:59 +08:00
develop_tools [KYUUBI #1557] [DOC] The TTL Of Kyuubi Engines 2021-12-15 10:02:02 +08:00
imgs [KYUUBI #1550] Provide a specific user guide about connecting to kerberized kyuubi 2021-12-16 17:21:31 +08:00
integrations [KYUUBI #1484] Add a dependency describe for kyuubi on azure delta-lake doc. 2021-12-02 17:01:31 +08:00
monitor [KYUUBI #1914] Update metric doc 2022-02-17 10:38:54 +08:00
overview [KYUUBI #1527] [DOC] Improve High Availability Guide 2021-12-09 13:58:00 +08:00
quick_start [KYUUBI #1462] [DOC] Use relative paths instead of absolute paths 2021-11-30 09:32:34 +08:00
security [KYUUBI #1550] Provide a specific user guide about connecting to kerberized kyuubi 2021-12-16 17:21:31 +08:00
sql [KYUUBI #1577] Add DropIgnoreNonexistent Rule. 2021-12-20 11:46:25 +08:00
tools [KYUUBI #1335] Spell issue branch 2021-11-05 09:33:32 +08:00
conf.py [KYUUBI #1889] Improve the user experience of the configuration parameters of the document 2022-02-11 09:29:50 +08:00
index.rst [KYUUBI #1526] [DOC] Update kyuubi_layers.drawio to add driver layer 2021-12-08 17:07:11 +08:00
make.bat [KYUUBI #874] [ASF] ASF Publish 2021-08-16 11:48:21 +08:00
Makefile [KYUUBI #874] [ASF] ASF Publish 2021-08-16 11:48:21 +08:00
requirements.txt [KYUUBI #1557] [DOC] The TTL Of Kyuubi Engines 2021-12-15 10:02:02 +08:00