Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17177 Java 17 support
  3. HADOOP-17432

[JDK 16] KerberosUtil#getOidInstance is broken by JEP 396

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.1, 3.4.0
    • 3.3.1, 3.4.0
    • auth
    • Java 16-ea+28

    Description

      JEP 396 (Strongly Encapsulate JDK Internals by Default) has been migrated since Java 16 EA Build 28. Calling the internal APIs (except the critical APIs such as sun.misc.Unsafe) are banned by default.

      [INFO] Running org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler
      [ERROR] Tests run: 16, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 17.323 s <<< FAILURE! - in org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler
      [ERROR] testNonDefaultNonBrowserUserAgentAsNonBrowser(org.apache.hadoop.security.authentication.server.TestAltKerberosAuthenticationHandler)  Time elapsed: 1.272 s  <<< ERROR!
      java.lang.IllegalAccessException: class org.apache.hadoop.security.authentication.util.KerberosUtil cannot access class sun.security.jgss.GSSUtil (in module java.security.jgss) because module java.security.jgss does not export sun.security.jgss to unnamed module @48967c8b
      	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:385)
      	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:687)
      	at java.base/java.lang.reflect.Field.checkAccess(Field.java:1096)
      	at java.base/java.lang.reflect.Field.get(Field.java:417)
      	at org.apache.hadoop.security.authentication.util.KerberosUtil.getOidInstance(KerberosUtil.java:90)
      

      Attachments

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 20m
                  3h 20m