[
https://issues.apache.org/jira/browse/YARN-8514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16539164#comment-16539164
]
Eric Yang commented on YARN-8514:
---------------------------------
This NPE is introduced by YARN-4983. UgiMetrics will not be initialized in UGI
class, unless there is external code that calls:
{code:java}
UserGroupInformation.reattachMetrics();{code}
There is a possibility that other new process encounter the same NPE in
Kerberos enabled environment. It would be great if the reattachMetrics call
can be initialized by itself without external invocation.
> YARN RegistryDNS throws NPE when Kerberos tgt expires
> -----------------------------------------------------
>
> Key: YARN-8514
> URL: https://issues.apache.org/jira/browse/YARN-8514
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Eric Yang
> Priority: Critical
>
> After Kerberos ticket expires, RegistryDNS throws NPE error:
> {code:java}
> 2018-07-06 01:26:25,025 ERROR yarn.YarnUncaughtExceptionHandler
> (YarnUncaughtExceptionHandler.java:uncaughtException(68)) - Thread Thread[TGT
> Renewer for rm/[email protected],5,main] threw an Exception.
> java.lang.NullPointerException
> at
> javax.security.auth.kerberos.KerberosTicket.getEndTime(KerberosTicket.java:482)
> at
> org.apache.hadoop.security.UserGroupInformation$1.run(UserGroupInformation.java:894)
> at java.lang.Thread.run(Thread.java:745){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]