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 3048
3048
<properties >
3049
3049
<maven .compiler.release>${releaseTarget} </maven .compiler.release>
3050
3050
<!-- TODO: replicate logic for windows support -->
3051
- <argLine >--add-opens=java.base/jdk.internal.ref=ALL-UNNAMED ${hbase-surefire.argLine}</argLine >
3051
+ <argLine >-Dio.netty.tryReflectionSetAccessible=true
3052
+ --illegal-access=permit
3053
+ --add-modules jdk.unsupported
3054
+ --add-opens java.base/java.nio=ALL-UNNAMED
3055
+ --add-opens java.base/sun.nio.ch=ALL-UNNAMED
3056
+ --add-opens java.base/java.lang=ALL-UNNAMED
3057
+ --add-opens java.base/jdk.internal.ref=ALL-UNNAMED
3058
+ --add-opens java.base/java.lang.reflect=ALL-UNNAMED
3059
+ --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
3060
+ ${hbase-surefire.argLine}</argLine >
3052
3061
<!-- We need a minimum HDFS version of 3.2.0 for HADOOP-12760 -->
3053
3062
<hadoop-three .version>3.2.0</hadoop-three .version>
3054
3063
<!--
You can’t perform that action at this time.
0 commit comments