forked from apache/kyuubi
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KYUUBI apache#6197] Revise dependency management of Spark authZ plugin
# 🔍 Description ## Issue References 🔗 The POM of `kyuubi-spark-authz-shaded` is redundant, just pull `kyuubi-spark-authz` is necessary. The current dependency management does not work on Ranger 2.1.0, this patch cleans up the POM definition and fixes the compatibility with Ranger 2.1.0 ## Describe Your Solution 🔧 Carefully revise the dependency list and exclusion. ## Types of changes 🔖 - [x] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Test Plan 🧪 perform packing kyuubi-spark-authz-shaded module. ``` build/mvn clean install -pl extensions/spark/kyuubi-spark-authz-shaded -am -DskipTests ``` before ``` [INFO] --- maven-shade-plugin:3.5.2:shade (default) kyuubi-spark-authz-shaded_2.12 --- [INFO] Including org.apache.kyuubi:kyuubi-spark-authz_2.12🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.kyuubi:kyuubi-util-scala_2.12🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.kyuubi:kyuubi-util🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-common🫙2.4.0 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-jaxrs🫙1.9.13 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-core-asl🫙1.9.13 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-mapper-asl🫙1.9.13 in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-cred🫙2.4.0 in the shaded jar. [INFO] Including com.sun.jersey:jersey-client🫙1.19.4 in the shaded jar. [INFO] Including com.sun.jersey:jersey-core🫙1.19.4 in the shaded jar. [INFO] Including com.kstruct:gethostname4j🫙1.0.0 in the shaded jar. [INFO] Including net.java.dev.jna:jna🫙5.7.0 in the shaded jar. [INFO] Including net.java.dev.jna:jna-platform🫙5.7.0 in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-audit🫙2.4.0 in the shaded jar. ``` after ``` [INFO] --- maven-shade-plugin:3.5.2:shade (default) kyuubi-spark-authz-shaded_2.12 --- [INFO] Including org.apache.kyuubi:kyuubi-spark-authz_2.12🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.kyuubi:kyuubi-util-scala_2.12🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.kyuubi:kyuubi-util🫙1.10.0-SNAPSHOT in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-common🫙2.4.0 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-jaxrs🫙1.9.13 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-core-asl🫙1.9.13 in the shaded jar. [INFO] Including org.codehaus.jackson:jackson-mapper-asl🫙1.9.13 in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-cred🫙2.4.0 in the shaded jar. [INFO] Including com.sun.jersey:jersey-client🫙1.19.4 in the shaded jar. [INFO] Including com.sun.jersey:jersey-core🫙1.19.4 in the shaded jar. [INFO] Including com.kstruct:gethostname4j🫙1.0.0 in the shaded jar. [INFO] Including net.java.dev.jna:jna🫙5.7.0 in the shaded jar. [INFO] Including net.java.dev.jna:jna-platform🫙5.7.0 in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugin-classloader🫙2.4.0 in the shaded jar. [INFO] Including org.apache.ranger:ranger-plugins-audit🫙2.4.0 in the shaded jar. ``` --- # Checklist 📝 - [x] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html) **Be nice. Be informative.** Closes apache#6197 from pan3793/authz-dep. Closes apache#6197 d0becab [Cheng Pan] 2.4 47e3850 [Cheng Pan] ranger 2.4 af01f7e [Cheng Pan] test ranger 2.1 203aff3 [Cheng Pan] ranger-plugins-cred 974d76b [Cheng Pan] Resive dependency management of authz e5154f3 [Cheng Pan] improve authz deps Authored-by: Cheng Pan <[email protected]> Signed-off-by: Cheng Pan <[email protected]>
- Loading branch information
Showing
3 changed files
with
60 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters