This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new ab36bab90b6 HADOOP-19530. Add --enable-native-access=ALL-UNNAMED JVM
option (#8605)
ab36bab90b6 is described below
commit ab36bab90b6b7482e25d6e3f0c208bf763e355a6
Author: rohit-kb <[email protected]>
AuthorDate: Wed Jul 15 20:29:21 2026 +0530
HADOOP-19530. Add --enable-native-access=ALL-UNNAMED JVM option (#8605)
Co-authored-by: Istvan Toth <[email protected]>
---
hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh | 1 +
hadoop-project/pom.xml | 1 +
2 files changed, 2 insertions(+)
diff --git
a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
index a6788f1f4df..1838333a8f9 100755
--- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
+++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh
@@ -1589,6 +1589,7 @@ function hadoop_finalize_jpms_opts
hadoop_add_param HADOOP_OPTS open.java.util.zip
"--add-opens=java.base/java.util.zip=ALL-UNNAMED"
hadoop_add_param HADOOP_OPTS open.sun.security.util
"--add-opens=java.base/sun.security.util=ALL-UNNAMED"
hadoop_add_param HADOOP_OPTS open.sun.security.x509
"--add-opens=java.base/sun.security.x509=ALL-UNNAMED"
+ hadoop_add_param HADOOP_OPTS enable.native.access
"--enable-native-access=ALL-UNNAMED"
}
## @description Finish Java classpath prior to execution
diff --git a/hadoop-project/pom.xml b/hadoop-project/pom.xml
index 726a2262c7d..7ba807e4edd 100644
--- a/hadoop-project/pom.xml
+++ b/hadoop-project/pom.xml
@@ -183,6 +183,7 @@
--add-opens=java.base/java.util.zip=ALL-UNNAMED
--add-opens=java.base/sun.security.util=ALL-UNNAMED
--add-opens=java.base/sun.security.x509=ALL-UNNAMED
+ --enable-native-access=ALL-UNNAMED
</extraJavaTestArgs>
<!-- Plugin versions and config -->
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError
${extraJavaTestArgs}</maven-surefire-plugin.argLine>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]