You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2022/08/25 13:02:07 UTC
[incubator-kyuubi] branch master updated: [KYUUBI #3333] Bump ranger version from 2.2.0 to 2.3.0
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new 0ba04339e [KYUUBI #3333] Bump ranger version from 2.2.0 to 2.3.0
0ba04339e is described below
commit 0ba04339e8291c14b04fee7b893f545f74b8a54b
Author: yikf <yi...@gmail.com>
AuthorDate: Thu Aug 25 12:59:28 2022 +0000
[KYUUBI #3333] Bump ranger version from 2.2.0 to 2.3.0
### _Why are the changes needed?_
Fix https://github.com/apache/incubator-kyuubi/issues/3217#issuecomment-1219271537
This pr aims to bump ranger version from 2.2.0 to 2.3.0
### _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 #3333 from Yikf/pr/3282.
Closes #3333
07b35b9f [Cheng Pan] Update log4j2-test.xml
45a403b4 [yikf] [KYUUBI #3217][FOLLOWUP] Bump ranger version to 2.3.0
Lead-authored-by: yikf <yi...@gmail.com>
Co-authored-by: Cheng Pan <pa...@gmail.com>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
docs/security/authorization/spark/build.md | 1 +
extensions/spark/kyuubi-spark-authz/README.md | 5 +++--
extensions/spark/kyuubi-spark-authz/pom.xml | 8 ++++++++
.../spark/kyuubi-spark-authz/src/test/resources/log4j2-test.xml | 5 +++++
pom.xml | 2 +-
5 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/docs/security/authorization/spark/build.md b/docs/security/authorization/spark/build.md
index 225fc10c7..bba3894fd 100644
--- a/docs/security/authorization/spark/build.md
+++ b/docs/security/authorization/spark/build.md
@@ -73,6 +73,7 @@ The available `ranger.version`s are shown in the following table.
| Ranger Version | Supported | Remark |
|:--------------:|:-----------:|:------:|
+| 2.3.x | √ | - |
| 2.2.x | √ | - |
| 2.1.x | √ | - |
| 2.0.x | √ | - |
diff --git a/extensions/spark/kyuubi-spark-authz/README.md b/extensions/spark/kyuubi-spark-authz/README.md
index a3dc123e0..617c091a1 100644
--- a/extensions/spark/kyuubi-spark-authz/README.md
+++ b/extensions/spark/kyuubi-spark-authz/README.md
@@ -26,7 +26,7 @@
## Build
```shell
-build/mvn clean package -pl :kyuubi-spark-authz_2.12 -Dspark.version=3.2.1 -Dranger.version=2.2.0
+build/mvn clean package -pl :kyuubi-spark-authz_2.12 -Dspark.version=3.2.1 -Dranger.version=2.3.0
```
@@ -45,7 +45,8 @@ build/mvn clean package -pl :kyuubi-spark-authz_2.12 -Dspark.version=3.2.1 -Dran
`-Dranger.version=`
-- [x] 2.2.x (default)
+- [x] 2.3.x (default)
+- [x] 2.2.x
- [x] 2.1.x
- [x] 2.0.x
- [x] 1.2.x
diff --git a/extensions/spark/kyuubi-spark-authz/pom.xml b/extensions/spark/kyuubi-spark-authz/pom.xml
index 27aad835c..35fea54c5 100644
--- a/extensions/spark/kyuubi-spark-authz/pom.xml
+++ b/extensions/spark/kyuubi-spark-authz/pom.xml
@@ -56,6 +56,10 @@
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ </exclusion>
<exclusion>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
@@ -194,6 +198,10 @@
<groupId>org.apache.logging.log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
+ <exclusion>
+ <groupId>com.amazonaws</groupId>
+ <artifactId>aws-java-sdk-bundle</artifactId>
+ </exclusion>
</exclusions>
</dependency>
diff --git a/extensions/spark/kyuubi-spark-authz/src/test/resources/log4j2-test.xml b/extensions/spark/kyuubi-spark-authz/src/test/resources/log4j2-test.xml
index bfc40dd6d..5e01ed4ab 100644
--- a/extensions/spark/kyuubi-spark-authz/src/test/resources/log4j2-test.xml
+++ b/extensions/spark/kyuubi-spark-authz/src/test/resources/log4j2-test.xml
@@ -39,5 +39,10 @@
<AppenderRef ref="stdout"/>
<AppenderRef ref="file"/>
</Root>
+ <!-- RANGER-3108: fail w/ NPE when DEBUG level is enabled -->
+ <Logger name="org.apache.ranger.plugin.policyengine.RangerPolicyRepository" level="WARN" additivity="false">
+ <AppenderRef ref="stdout"/>
+ <AppenderRef ref="file"/>
+ </Logger>
</Loggers>
</Configuration>
diff --git a/pom.xml b/pom.xml
index 5ba521fed..bb4e0e1d1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -157,7 +157,7 @@
<netty.version>4.1.73.Final</netty.version>
<parquet.version>1.10.1</parquet.version>
<prometheus.version>0.16.0</prometheus.version>
- <ranger.version>2.2.0</ranger.version>
+ <ranger.version>2.3.0</ranger.version>
<scalacheck.version>3.2.9.0</scalacheck.version>
<scalatest.version>3.2.9</scalatest.version>
<scalatestplus.version>3.2.9.0</scalatestplus.version>