[ 
https://issues.apache.org/jira/browse/HADOOP-17432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17324284#comment-17324284
 ] 

Ayush Saxena commented on HADOOP-17432:
---------------------------------------

Was trying to compile HIVE with 3.4.0-Snapshot, And this change actually gave 
some red here:
 
[https://github.com/apache/hive/blob/master/druid-handler/src/java/org/apache/hadoop/hive/druid/security/DruidKerberosUtil.java#L80]

Question:
{code:java}
-  public static Oid getOidInstance(String oidName) 
-      throws ClassNotFoundException, GSSException, NoSuchFieldException,
-      IllegalAccessException {
+  @Deprecated
+  public static Oid getOidInstance(String oidName)
+      throws NoSuchFieldException {
+    switch (oidName) {
{code}
Is this change in the signature of a public method? Marking it deprecated is of 
not much use now right?

[~aajisaka] can we add the Exceptions back for compatibility keeping the code 
inside same, This seems for JDK-16 only right?

> [JDK 16] KerberosUtil#getOidInstance is broken by JEP 396
> ---------------------------------------------------------
>
>                 Key: HADOOP-17432
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17432
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: auth
>         Environment: Java 16-ea+28
>            Reporter: Akira Ajisaka
>            Assignee: Akira Ajisaka
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.3.1, 3.4.0
>
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>
> 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.
> {noformat}
> [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)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to