[KYUUBI #1948][FOLLOWUP] Relocate fb303 classes

### _Why are the changes needed?_

We should relocate fb303 classes to avoid conflict, fix #2093.

### _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 #2096 from SteNicholas/KYUUBI-2093.

Closes #1948

2095f835 [SteNicholas] [KYUUBI #2093] kyuubi beeline can not connect the kyuubi server due to exception

Authored-by: SteNicholas <programgeek@163.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
SteNicholas 2022-03-11 09:41:24 +08:00 committed by Cheng Pan
parent 1e23e7a93c
commit 12d56422b1
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D
2 changed files with 14 additions and 0 deletions

View File

@ -220,6 +220,13 @@
<include>org.apache.thrift.**</include>
</includes>
</relocation>
<relocation>
<pattern>com.facebook.fb303</pattern>
<shadedPattern>${kyuubi.shade.packageName}.com.facebook.fb303</shadedPattern>
<includes>
<include>com.facebook.fb303.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.apache.zookeeper</pattern>
<shadedPattern>${kyuubi.shade.packageName}.org.apache.zookeeper</shadedPattern>

View File

@ -211,6 +211,13 @@
<include>org.apache.thrift.**</include>
</includes>
</relocation>
<relocation>
<pattern>com.facebook.fb303</pattern>
<shadedPattern>${kyuubi.shade.packageName}.com.facebook.fb303</shadedPattern>
<includes>
<include>com.facebook.fb303.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.apache.hive.service.rpc</pattern>
<shadedPattern>${kyuubi.shade.packageName}.org.apache.hive.service.rpc</shadedPattern>