Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
hbase-operator-tools-1.2.0
-
None
-
Reviewed
Description
I noted that we have already supported to build hbase-operator-tools with JDK17.
HBASE-28381 Support building hbase-operator-tools with JDK17 - ASF JIRA (apache.org)
But, when running UT in the hbase-hbck2 project using JDK17, an error occurs when starting the hbase MiniCluster cluster.
java.lang.NoSuchFieldException: modifiers
at java.lang.Class.getDeclaredField(Class.java:2610) ~[?:?]
at org.apache.hadoop.hbase.fs.HFileSystem.addLocationsOrderInterceptor(HFileSystem.java:338) [hbase-server-2.4.4.jar:2.4.4]
at org.apache.hadoop.hbase.fs.HFileSystem.addLocationsOrderInterceptor(HFileSystem.java:295) [hbase-server-2.4.4.jar:2.4.4]
at org.apache.hadoop.hbase.fs.HFileSystem.<init>(HFileSystem.java:100) [hbase-server-2.4.4.jar:2.4.4]
at org.apache.hadoop.hbase.regionserver.HRegionServer.initializeFileSystem(HRegionServer.java:767) [hbase-server-2.4.4.jar:2.4.4]
at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:654) [hbase-server-2.4.4.jar:2.4.4]
The reason is that the 'modifiers' field is not accessible in JDK17.
Since HBase 2.5.0 supports JDK 17, I updated the HBase dependencies, and the test cases can pass successfully.
Attachments
Issue Links
- is related to
-
HBASE-28381 Support building hbase-operator-tools with JDK17
- Resolved
- links to