-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74926/
-----------------------------------------------------------

(Updated Nov. 19, 2024, 11:23 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.


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
-----

  .github/workflows/maven.yml 3ddb1a277 
  agents-common/pom.xml 502a1f716 
  
agents-common/src/main/java/org/apache/ranger/plugin/conditionevaluator/RangerScriptConditionEvaluator.java
 6eb192270 
  
agents-common/src/main/java/org/apache/ranger/plugin/util/GraalScriptEngineCreator.java
 512d8d3ca 
  
agents-common/src/main/java/org/apache/ranger/plugin/util/JavaScriptEngineCreator.java
 4a0081579 
  
agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java
 db620df92 
  
agents-common/src/main/java/org/apache/ranger/plugin/util/ScriptEngineUtil.java 
8d76c1d81 
  
agents-common/src/test/java/org/apache/ranger/plugin/conditionevaluator/RangerRequestScriptEvaluatorTest.java
 0059bef88 
  dev-support/ranger-docker/.env 00d85b987 
  dev-support/ranger-docker/Dockerfile.ranger-base 4414c13dc 
  dev-support/ranger-docker/scripts/ranger-hadoop-setup.sh 10f04acd9 
  dev-support/ranger-docker/scripts/ranger-hbase-setup.sh 95a1bdf21 
  distro/src/main/assembly/admin-web.xml 54fba59ba 
  distro/src/main/assembly/hbase-agent.xml 37e2903a4 
  distro/src/main/assembly/hdfs-agent.xml 8b133d993 
  distro/src/main/assembly/hive-agent.xml 9b9bc5b3a 
  distro/src/main/assembly/knox-agent.xml a7906fe4f 
  distro/src/main/assembly/plugin-atlas.xml 59b229c18 
  distro/src/main/assembly/plugin-kafka.xml 4fe600cd9 
  distro/src/main/assembly/plugin-kms.xml 605bdeff9 
  distro/src/main/assembly/plugin-kylin.xml b4a007616 
  distro/src/main/assembly/plugin-ozone.xml 5f1e6a538 
  distro/src/main/assembly/plugin-presto.xml e4101237a 
  distro/src/main/assembly/plugin-solr.xml b1b110421 
  distro/src/main/assembly/plugin-sqoop.xml 2230d9067 
  distro/src/main/assembly/plugin-yarn.xml 98e2b39cb 
  distro/src/main/assembly/storm-agent.xml 083bbbf22 
  docs/src/site/resources/index.js bb876f28d 
  hdfs-agent/pom.xml 901c5a22a 
  kms/pom.xml 4a901843b 
  kms/src/main/java/org/apache/hadoop/crypto/key/RangerMasterKey.java db3750ecc 
  knox-agent/pom.xml fb631725b 
  plugin-nestedstructure/pom.xml 7643a9465 
  
plugin-nestedstructure/src/main/java/org/apache/ranger/authorization/nestedstructure/authorizer/RecordFilterJavaScript.java
 77767767c 
  
plugin-nestedstructure/src/test/java/org/apache/ranger/authorization/nestedstructure/authorizer/TestRecordFilterJavaScript.java
 9cb161b8d 
  pom.xml c6e829b43 
  security-admin/pom.xml f7f8a8175 


Diff: https://reviews.apache.org/r/74926/diff/7/


Testing (updated)
-------

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

Reply via email to