[KYUUBI #3566] Shade Zookeeper into spark engine jar

### _Why are the changes needed?_

Close https://github.com/apache/incubator-kyuubi/issues/3566.

### _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

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

Closes #3570 from Yikf/shade-spark-engine.

Closes #3566

0290cbc9 [Yikf] shade zookeeper in spark-engine

Authored-by: Yikf <yikaifei1@gmail.com>
Signed-off-by: Cheng Pan <chengpan@apache.org>
This commit is contained in:
Yikf 2022-09-28 18:35:54 +08:00 committed by Cheng Pan
parent 8419b7bafd
commit b677148835
No known key found for this signature in database
GPG Key ID: 8001952629BCC75D

View File

@ -222,6 +222,7 @@
<include>org.apache.curator:curator-client</include>
<include>org.apache.curator:curator-framework</include>
<include>org.apache.curator:curator-recipes</include>
<include>org.apache.zookeeper:zookeeper</include>
<include>org.apache.hive:hive-service-rpc</include>
<include>org.apache.thrift:*</include>
</includes>
@ -252,6 +253,20 @@
<include>org.apache.curator.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.apache.zookeeper</pattern>
<shadedPattern>${kyuubi.shade.packageName}.org.apache.zookeeper</shadedPattern>
<includes>
<include>org.apache.zookeeper.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.apache.jute</pattern>
<shadedPattern>${kyuubi.shade.packageName}.org.apache.jute</shadedPattern>
<includes>
<include>org.apache.jute.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.apache.hive.service.rpc.thrift</pattern>
<shadedPattern>${kyuubi.shade.packageName}.org.apache.hive.service.rpc.thrift</shadedPattern>