|
@@ -255,15 +255,11 @@ public class SecondaryNameNode implements Runnable {
|
|
|
new AccessControlList(conf.get(DFS_ADMIN, " "))) {
|
|
|
{
|
|
|
if (UserGroupInformation.isSecurityEnabled()) {
|
|
|
- String httpKeytabKey = DFSConfigKeys.
|
|
|
- DFS_WEB_AUTHENTICATION_KERBEROS_KEYTAB_KEY;
|
|
|
- if (null == conf.get(httpKeytabKey)) {
|
|
|
- httpKeytabKey = DFSConfigKeys.DFS_SECONDARY_NAMENODE_KEYTAB_FILE_KEY;
|
|
|
- }
|
|
|
initSpnego(
|
|
|
conf,
|
|
|
DFSConfigKeys.DFS_SECONDARY_NAMENODE_INTERNAL_SPNEGO_USER_NAME_KEY,
|
|
|
- httpKeytabKey);
|
|
|
+ DFSUtil.getSpnegoKeytabKey(conf,
|
|
|
+ DFSConfigKeys.DFS_SECONDARY_NAMENODE_KEYTAB_FILE_KEY));
|
|
|
}
|
|
|
}
|
|
|
};
|