Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28787 Support JDK17 for hbase-operator-tools
  3. HBASE-28773

Failed to start HBase MiniCluster when running UT with JDK 17 in hbase-hbck2

    XMLWordPrintableJSON

Details

    • 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

          Activity

            People

              nihaljain.cs Nihal Jain
              guluo guluo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: