hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kan Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6913) Circular initialization between UserGroupInformation and KerberosName
Date Wed, 11 Aug 2010 18:30:18 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897370#action_12897370

Kan Zhang commented on HADOOP-6913:

TestBlockToken fails  (HDFS-1284) on some platforms because of this. Before the test starts,
it tries to initialize UGI using a customized conf with property "hadoop.security.authentication"
set to "kerberos". However, because of this bug, the value eventually been used is "simple"
from the default conf. And the test fails as a result.

> Circular initialization between UserGroupInformation and KerberosName
> ---------------------------------------------------------------------
>                 Key: HADOOP-6913
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6913
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: Kan Zhang
>            Assignee: Kan Zhang
> 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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message