HADOOP-19219. Add JPMS options required by hadoop-common (#7084) Contributed by Cheng Pan.
Some checks failed
website / build (push) Has been cancelled
Some checks failed
website / build (push) Has been cancelled
Reviewed-by: Steve Loughran <stevel@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
This commit is contained in:
parent
e9ed21c065
commit
3f637efaa2
@ -1569,6 +1569,19 @@ function hadoop_finalize_hadoop_opts
|
|||||||
hadoop_add_param HADOOP_OPTS hadoop.security.logger "-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER}"
|
hadoop_add_param HADOOP_OPTS hadoop.security.logger "-Dhadoop.security.logger=${HADOOP_SECURITY_LOGGER}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
## @description Finish configuring JPMS that enforced for JDK 17 and higher
|
||||||
|
## @description prior to executing Java
|
||||||
|
## @audience private
|
||||||
|
## @stability evolving
|
||||||
|
## @replaceable yes
|
||||||
|
function hadoop_finalize_jpms_opts
|
||||||
|
{
|
||||||
|
hadoop_add_param HADOOP_OPTS IgnoreUnrecognizedVMOptions "-XX:+IgnoreUnrecognizedVMOptions"
|
||||||
|
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"
|
||||||
|
}
|
||||||
|
|
||||||
## @description Finish Java classpath prior to execution
|
## @description Finish Java classpath prior to execution
|
||||||
## @audience private
|
## @audience private
|
||||||
## @stability evolving
|
## @stability evolving
|
||||||
@ -1597,6 +1610,7 @@ function hadoop_finalize
|
|||||||
hadoop_finalize_libpaths
|
hadoop_finalize_libpaths
|
||||||
hadoop_finalize_hadoop_heap
|
hadoop_finalize_hadoop_heap
|
||||||
hadoop_finalize_hadoop_opts
|
hadoop_finalize_hadoop_opts
|
||||||
|
hadoop_finalize_jpms_opts
|
||||||
|
|
||||||
hadoop_translate_cygwin_path HADOOP_HOME
|
hadoop_translate_cygwin_path HADOOP_HOME
|
||||||
hadoop_translate_cygwin_path HADOOP_CONF_DIR
|
hadoop_translate_cygwin_path HADOOP_CONF_DIR
|
||||||
|
@ -167,8 +167,14 @@
|
|||||||
<enforced.java.version>[${javac.version},)</enforced.java.version>
|
<enforced.java.version>[${javac.version},)</enforced.java.version>
|
||||||
<enforced.maven.version>[3.3.0,)</enforced.maven.version>
|
<enforced.maven.version>[3.3.0,)</enforced.maven.version>
|
||||||
|
|
||||||
|
<extraJavaTestArgs>
|
||||||
|
-XX:+IgnoreUnrecognizedVMOptions
|
||||||
|
--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
|
||||||
|
</extraJavaTestArgs>
|
||||||
<!-- Plugin versions and config -->
|
<!-- Plugin versions and config -->
|
||||||
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError</maven-surefire-plugin.argLine>
|
<maven-surefire-plugin.argLine>-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError ${extraJavaTestArgs}</maven-surefire-plugin.argLine>
|
||||||
<maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
|
<maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
|
||||||
<maven-surefire-report-plugin.version>${maven-surefire-plugin.version}</maven-surefire-report-plugin.version>
|
<maven-surefire-report-plugin.version>${maven-surefire-plugin.version}</maven-surefire-report-plugin.version>
|
||||||
<maven-failsafe-plugin.version>${maven-surefire-plugin.version}</maven-failsafe-plugin.version>
|
<maven-failsafe-plugin.version>${maven-surefire-plugin.version}</maven-failsafe-plugin.version>
|
||||||
|
Loading…
Reference in New Issue
Block a user