[
https://issues.apache.org/jira/browse/HADOOP-11287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14238777#comment-14238777
]
Stephen Chu commented on HADOOP-11287:
--------------------------------------
Hi, [~gtCarrera9]. Thanks for working on this.
I believe this will break when run with JDK8 because as described in
HADOOP-10786: "Krb5LoginModule changed subtly in java 8: in particular, if
useKeyTab and storeKey are specified, then only a KeyTab object is added to the
Subject's private credentials, whereas in java <= 7 both a KeyTab and some
number of KerberosKey objects were added."
If users run with the current patch on Java 8, then they will incorrectly set
isKeytab to false because KerberosKey objects will not be added.
> Simplify UGI#reloginFromKeytab for Java 7+
> ------------------------------------------
>
> Key: HADOOP-11287
> URL: https://issues.apache.org/jira/browse/HADOOP-11287
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Haohui Mai
> Assignee: Li Lu
> Attachments: HADOOP-11287-120814.patch, HADOOP-11287-120814.patch
>
>
> HADOOP-10786 uses reflection to make {{UGI#reloginFromKeytab}} work with Java
> 6/7/8. In 2.7 Java 6 will no longer be supported, thus the code can be
> simplified.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)