Description
If the first call to UGI is UGI.setConfiguration(conf), it will try to initialize UGI class. During this initialization, the code calls KerberosName.setConfiguration(). KerberosName's static initializer will in turn call UGI.isSecurityEnabled(). Since UGI hasn't been completely initialized yet, isSecurityEnabled() will re-initialize UGI with a DEFAULT conf. As a result, the original conf used in UGI.setConfiguration(conf) will be overwritten by the DEFAULT conf.
Attachments
Attachments
Issue Links
- blocks
-
HDFS-1284 TestBlockToken fails
- Closed
- is related to
-
HADOOP-9888 KerberosName static initialization gets default realm, which is unneeded in non-secure deployment.
- Resolved