Details
Description
In a few hard-to-reproduce situations, we've seen a problem where the UGI login call causes a failure to login exception with the following cause:
Caused by: javax.security.auth.login.LoginException: unable to find
LoginModule class: org.apache.hadoop.security.UserGroupInformation
$HadoopLoginModule
After a bunch of debugging, I determined that this happens when the login occurs in a thread whose Context ClassLoader has been set to null.