Skip to content

Commit

Permalink
[KYUUBI #6666][AUTHZ]Upgrade Ranger plugin to 2.5.0
Browse files Browse the repository at this point in the history
# 🔍 Description
## Issue References 🔗

This pull request fixes #6666

## Describe Your Solution 🔧

Bump ranger version to 2.5.0
Release notes: https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+2.5.0+-+Release+Notes

## Types of changes 🔖

- [ ] 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 🧪

#### Behavior Without This Pull Request ⚰️

#### Behavior With This Pull Request 🎉

#### Related Unit Tests

---

# Checklist 📝

- [ ] This patch was not authored or co-authored using [Generative Tooling](https://www.apache.org/legal/generative-tooling.html)

**Be nice. Be informative.**

Closes #6692 from Madhukar525722/ranger_upgrade.

Closes #6666

88e1e12 [madlnu] [KYUUBI #6666] Upgrade spark ranger plugin to 2.5.0

Authored-by: madlnu <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
  • Loading branch information
Madhukar525722 authored and pan3793 committed Sep 23, 2024
1 parent 408d4a3 commit ebe7e92
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 278 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 @@ -22,7 +22,7 @@ import java.nio.file.{Files, Paths, StandardOpenOption}
import java.util.UUID

import com.fasterxml.jackson.annotation.JsonInclude.Include
import com.fasterxml.jackson.databind.{JsonNode, ObjectMapper}
import com.fasterxml.jackson.databind.{JsonNode, ObjectMapper, SerializationFeature}
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.module.scala.DefaultScalaModule
Expand Down Expand Up @@ -57,6 +57,7 @@ class PolicyJsonFileGenerator extends AnyFunSuite {
final private val mapper: ObjectMapper = JsonMapper.builder()
.addModule(DefaultScalaModule)
.serializationInclusion(Include.NON_NULL)
.enable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS)
.build()

test("check ranger policy file") {
Expand Down
Loading

0 comments on commit ebe7e92

Please sign in to comment.