Skip to content

Commit

Permalink
[KYUUBI #6666] Upgrade spark ranger plugin to 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhukar525722 committed Sep 19, 2024
1 parent 7198c72 commit fcc57f1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 228 deletions.
1 change: 1 addition & 0 deletions docs/security/authorization/spark/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ The available `ranger.version`s are shown in the following table.

| Ranger Version | Supported | Remark |
|:--------------:|:---------:|:-----------------------------------------------------------------------------------------:|
| 2.5.x || - |
| 2.4.x || - |
| 2.3.x || - |
| 2.2.x || - |
Expand Down
5 changes: 3 additions & 2 deletions extensions/spark/kyuubi-spark-authz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
## Build

```shell
build/mvn clean package -DskipTests -pl :kyuubi-spark-authz_2.12 -am -Dspark.version=3.2.1 -Dranger.version=2.4.0
build/mvn clean package -DskipTests -pl :kyuubi-spark-authz_2.12 -am -Dspark.version=3.2.1 -Dranger.version=2.5.0
```

### Supported Apache Spark Versions
Expand All @@ -46,7 +46,8 @@ build/mvn clean package -DskipTests -pl :kyuubi-spark-authz_2.12 -am -Dspark.ver

`-Dranger.version=`

- [x] 2.4.x (default)
- [x] 2.5.x (default)
- [x] 2.4.x
- [x] 2.3.x
- [x] 2.2.x
- [x] 2.1.x
Expand Down
2 changes: 1 addition & 1 deletion extensions/spark/kyuubi-spark-authz/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<url>https://kyuubi.apache.org/</url>

<properties>
<ranger.version>2.4.0</ranger.version>
<ranger.version>2.5.0</ranger.version>
<!-- the following components' version may need to tune to align w/ the ranger.version-->
<gethostname4j.version>1.0.0</gethostname4j.version>
<jersey.client.version>1.19.4</jersey.client.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ class PolicyJsonFileGenerator extends AnyFunSuite {
val generatedStr = mapper.writerWithDefaultPrettyPrinter()
.writeValueAsString(servicePolicies)

println("Generated JSON:")
println(generatedStr)

if (sys.env.get("KYUUBI_UPDATE").contains("1")) {
// scalastyle:off println
println(s"Writing ranger policies to $policyFileName.")
// scalastyle:on println
Files.write(
policyFilePath,
generatedStr.getBytes(StandardCharsets.UTF_8),
Expand Down
Loading

0 comments on commit fcc57f1

Please sign in to comment.