File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -490,6 +490,10 @@ add_jdk11_deps_to_classpath() {
490
490
done
491
491
}
492
492
493
+ add_jdk11_jvm_flags () {
494
+ HBASE_OPTS=" $HBASE_OPTS -Dio.netty.tryReflectionSetAccessible=true --illegal-access=permit --add-modules jdk.unsupported --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED"
495
+ }
496
+
493
497
add_opentelemetry_agent () {
494
498
if [ -e " ${OPENTELEMETRY_JAVAAGENT_PATH} " ] ; then
495
499
agent_jar=" ${OPENTELEMETRY_JAVAAGENT_PATH} "
783
787
784
788
if [ " ${addJDK11Jars} " = " true" ]; then
785
789
add_jdk11_deps_to_classpath
790
+ add_jdk11_jvm_flags
786
791
if [ " ${DEBUG} " = " true" ]; then
787
- echo " Added JDK11 jars to classpath."
788
- fi
792
+ echo " Added JDK11 jars to classpath."
793
+ echo " Added JDK11 JVM flags too."
794
+ fi
789
795
elif [ " ${DEBUG} " = " true" ]; then
790
796
echo " JDK11 jars skipped from classpath."
797
+ echo " Skipped adding JDK11 JVM flags."
791
798
fi
792
799
793
800
if [[ -n " ${HBASE_TRACE_OPTS} " ]]; then
Original file line number Diff line number Diff line change 2851
2851
<properties >
2852
2852
<maven .compiler.release>${releaseTarget} </maven .compiler.release>
2853
2853
<!-- TODO: replicate logic for windows support -->
2854
- <argLine >--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED ${hbase-surefire.argLine}</argLine >
2854
+ <argLine >-Dio.netty.tryReflectionSetAccessible=true
2855
+ --illegal-access=permit
2856
+ --add-modules jdk.unsupported
2857
+ --add-opens java.base/java.nio=ALL-UNNAMED
2858
+ --add-opens java.base/sun.nio.ch=ALL-UNNAMED
2859
+ --add-opens java.base/java.lang=ALL-UNNAMED
2860
+ --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
2861
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
2862
+ --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
2863
+ ${hbase-surefire.argLine}</argLine >
2855
2864
<!-- We need a minimum HDFS version of 3.2.0 for HADOOP-12760 -->
2856
2865
<hadoop-three .version>3.2.0</hadoop-three .version>
2857
2866
<!--
You can’t perform that action at this time.
0 commit comments