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 @@ -492,6 +492,10 @@ add_jdk11_deps_to_classpath() {
492
492
done
493
493
}
494
494
495
+ add_jdk11_jvm_flags () {
496
+ 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"
497
+ }
498
+
495
499
add_opentelemetry_agent () {
496
500
if [ -e " ${OPENTELEMETRY_JAVAAGENT_PATH} " ] ; then
497
501
agent_jar=" ${OPENTELEMETRY_JAVAAGENT_PATH} "
811
815
812
816
if [ " ${addJDK11Jars} " = " true" ]; then
813
817
add_jdk11_deps_to_classpath
818
+ add_jdk11_jvm_flags
814
819
if [ " ${DEBUG} " = " true" ]; then
815
- echo " Added JDK11 jars to classpath."
816
- fi
820
+ echo " Added JDK11 jars to classpath."
821
+ echo " Added JDK11 JVM flags too."
822
+ fi
817
823
elif [ " ${DEBUG} " = " true" ]; then
818
824
echo " JDK11 jars skipped from classpath."
825
+ echo " Skipped adding JDK11 JVM flags."
819
826
fi
820
827
821
828
if [[ -n " ${HBASE_TRACE_OPTS} " ]]; then
Original file line number Diff line number Diff line change 3030
3030
<properties >
3031
3031
<maven .compiler.release>${releaseTarget} </maven .compiler.release>
3032
3032
<!-- TODO: replicate logic for windows support -->
3033
- <argLine >--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED ${hbase-surefire.argLine}</argLine >
3033
+ <argLine >-Dio.netty.tryReflectionSetAccessible=true
3034
+ --illegal-access=permit
3035
+ --add-modules jdk.unsupported
3036
+ --add-opens java.base/java.nio=ALL-UNNAMED
3037
+ --add-opens java.base/sun.nio.ch=ALL-UNNAMED
3038
+ --add-opens java.base/java.lang=ALL-UNNAMED
3039
+ --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
3040
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
3041
+ --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
3042
+ ${hbase-surefire.argLine}</argLine >
3034
3043
<!-- We need a minimum HDFS version of 3.2.0 for HADOOP-12760 -->
3035
3044
<hadoop-three .version>3.2.0</hadoop-three .version>
3036
3045
<!--
You can’t perform that action at this time.
0 commit comments