[
https://issues.apache.org/jira/browse/HBASE-26477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duo Zhang updated HBASE-26477:
------------------------------
Fix Version/s: 2.6.0
3.0.0-alpha-2
> Fix MiniMapReduceCluster failure under Java17
> ---------------------------------------------
>
> Key: HBASE-26477
> URL: https://issues.apache.org/jira/browse/HBASE-26477
> Project: HBase
> Issue Type: Task
> Components: test
> Reporter: Yutong Xiao
> Assignee: Yutong Xiao
> Priority: Major
> Fix For: 3.0.0-alpha-2, 2.6.0
>
>
> MiniMapReduceCluster in HBaseTestingUtil.java will not work. Find the error
> message in the container log:
> {code:java}
> Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
> protected final java.lang.Class
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> throws java.lang.ClassFormatError accessible: module java.base does not
> "opens java.lang" to unnamed module @755c9148
> at
> java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
> ~[?:?]
> at
> java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
> ~[?:?]
> at java.lang.reflect.Method.checkCanSetAccessible(Method.java:199)
> ~[?:?]
> at java.lang.reflect.Method.setAccessible(Method.java:193) ~[?:?]
> at
> com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
> ~[guice-4.0.jar:?]
> at
> java.security.AccessController.doPrivileged(AccessController.java:318) ~[?:?]
> at
> com.google.inject.internal.cglib.core.$ReflectUtils.<clinit>(ReflectUtils.java:46)
> ~[guice-4.0.jar:?]
> {code}
> The container of MiniMapReduceCluster is running in an independent JVM. So
> that we need to pass the JVM opts to the container JVM.
> Impacted UTs:
> TestSecureExportSnapshot
> TestMobSecureExportSnapshot
> TestVerifyReplicationCrossDiffHdfs
--
This message was sent by Atlassian Jira
(v8.20.10#820010)