----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/74926/ -----------------------------------------------------------
(Updated June 16, 2025, 8:01 a.m.) Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Abhay Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, sanket shelar, Sailaja Polavarapu, and Velmurugan Periasamy. Changes ------- Rebased patch Bugs: RANGER-4076 https://issues.apache.org/jira/browse/RANGER-4076 Repository: ranger Description ------- Currently only Java 8 and 11 are supported. Java 17 is a major LTS version of Java and adding support would modernize our Java version support. This patch enables manual and Docker-based build of Apache Ranger. It ensures compatibility with Java 8, Java 11, and Java 17 for both build and runtime environments. Diffs (updated) ----- .github/workflows/maven.yml 94cc5c32b agents-common/pom.xml 526586f92 agents-common/src/main/java/org/apache/ranger/plugin/util/GraalScriptEngineCreator.java b4a37960d agents-common/src/main/java/org/apache/ranger/plugin/util/JavaScriptEngineCreator.java dadf08d7e agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java b890fe85d agents-common/src/main/java/org/apache/ranger/plugin/util/ScriptEngineUtil.java 804b7ed10 agents-common/src/test/java/org/apache/ranger/plugin/conditionevaluator/RangerRequestScriptEvaluatorTest.java 2fb481fc8 dev-support/ranger-docker/Dockerfile.ranger-base 0dfd9d0be dev-support/ranger-docker/scripts/ranger-hadoop-setup.sh 10f04acd9 dev-support/ranger-docker/scripts/ranger-hbase-setup.sh 95a1bdf21 dev-support/ranger-docker/scripts/ranger-hive-setup.sh c0e7ee406 distro/src/main/assembly/admin-web.xml e01362ef5 distro/src/main/assembly/hbase-agent.xml bd6bb40fb distro/src/main/assembly/hdfs-agent.xml cbd874e23 distro/src/main/assembly/hive-agent.xml 32c7339a1 distro/src/main/assembly/knox-agent.xml a5d3ac291 distro/src/main/assembly/plugin-atlas.xml 3ba13d9ef distro/src/main/assembly/plugin-kafka.xml d87378da3 distro/src/main/assembly/plugin-kms.xml dde075253 distro/src/main/assembly/plugin-kylin.xml aa9638a8f distro/src/main/assembly/plugin-ozone.xml dfa3b6015 distro/src/main/assembly/plugin-presto.xml ec856b3fa distro/src/main/assembly/plugin-solr.xml 1d5c8da0c distro/src/main/assembly/plugin-sqoop.xml e0058e30c distro/src/main/assembly/plugin-yarn.xml 7c7f0e301 distro/src/main/assembly/storm-agent.xml c2a90f630 docs/src/site/resources/index.js 40a370056 hdfs-agent/pom.xml 88370ad87 kms/pom.xml 510ddb111 kms/src/main/java/org/apache/hadoop/crypto/key/RangerMasterKey.java d07a8adbd knox-agent/pom.xml b55acb9ba plugin-nestedstructure/pom.xml c0084c560 plugin-nestedstructure/src/main/java/org/apache/ranger/authorization/nestedstructure/authorizer/RecordFilterJavaScript.java 771876dab plugin-nestedstructure/src/test/java/org/apache/ranger/authorization/nestedstructure/authorizer/TestRecordFilterJavaScript.java d992ee660 pom.xml f2a0e40ee security-admin/pom.xml 714a2ef60 Diff: https://reviews.apache.org/r/74926/diff/9/ Changes: https://reviews.apache.org/r/74926/diff/8-9/ Testing ------- This patch has been successfully tested and verified with Java versions 8, 11, and 17. The verification process included both manual testing and a Docker-based setup. Now we are able to build and run on same jdk. ## Maven Build Verification ### JDK 8: mvn clean compile package install ### JDK 11: mvn clean compile package install ### JDK 17: mvn clean compile package install -Pranger-all-modules-jdk17 ### Validated policy enforcement for below scenario : ## Scenario 1: JDK 8 Build and Runtime Successfully validated Usersync, Tagsync, and Policy Enforcement (including policy conditions) for HDFS, HBase, and Hive services using Ranger with JDK 8 for both build and runtime environments. ## Scenario 2: JDK 8 Build and JDK 17 Runtime Successfully validated Usersync, Tagsync, and Policy Enforcement (including policy conditions) for HDFS and HBase services using Ranger with JDK 8 for the build and JDK 17 for the runtime environment. ## Scenario 3: JDK 17 Build and Runtime Successfully validated Usersync, Tagsync, and Policy Enforcement (including policy conditions) for HDFS and HBase services using Ranger with JDK 17 for both build and runtime environments. Thanks, Rakesh Gupta