[ https://issues.apache.org/jira/browse/HBASE-28773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872410#comment-17872410 ]
Nihal Jain edited comment on HBASE-28773 at 8/9/24 4:10 PM: ------------------------------------------------------------ Hi [~guluo] thanks for confirming. And yes I too referred HBASE-25516 only to suggest 2.4.16. The code for operators tools should build as is with minimum that version of hbase. But if really want to build it with 2.4.4, I can provide a simple patch. And also sorry for not trying to build hbase-operator-tool with hbase 2.4.4 before, as my goal in https://issues.apache.org/jira/browse/HBASE-28381 was just to ensure we are able to build code with JDK17 and hence had tested it with only 2.6.0. Let me fix this up! Also on "Upgrading the dependency version of hbase to 2.4.16": Based on my understanding we keep this to minimum so as to make sure all users on 2.4.x can use hbase-op-tool. See https://issues.apache.org/jira/browse/HBASE-27753 for more details. was (Author: nihaljain.cs): Hi [~guluo] thanks for confirming. And yesI referred HBASE-25516 only to suggest 2.4.16. The code for operators tools should build as is with minimum that version of hbase. But if really want to build it with 2.4.4, I can provide a simple patch. And also sorry for not trying to build hbase-operator-tool with hbase 2.4.4 before, as my goal in https://issues.apache.org/jira/browse/HBASE-28381 was just to ensure we are able to build code with JDK17 and hence had tested it with only 2.6.0. Let me fix this up! Also on "Upgrading the dependency version of hbase to 2.4.16": Based on my understanding we keep this to minimum so as to make sure all users on 2.4.x can use hbase-op-tool. See https://issues.apache.org/jira/browse/HBASE-27753 for more details. > Failed to start HBase MiniCluster when running UT with JDK 17 in hbase-hbck2 > ---------------------------------------------------------------------------- > > Key: HBASE-28773 > URL: https://issues.apache.org/jira/browse/HBASE-28773 > Project: HBase > Issue Type: Bug > Components: hbase-operator-tools > Affects Versions: 1.2.0 > Reporter: guluo > Assignee: Nihal Jain > Priority: Major > > 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. -- This message was sent by Atlassian Jira (v8.20.10#820010)