[
https://issues.apache.org/jira/browse/YARN-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837064#comment-13837064
]
Haohui Mai commented on YARN-1463:
----------------------------------
After the discussion with [~vinodkv], this is due to the code does conf.get()
for spnegokey / keytabkey for twice.
The following patch should fix the problem:
{code}
if (hasSpnegoConf) {
- builder.setUsernameConfKey(conf.get(spnegoPrincipalKey))
- .setKeytabConfKey(conf.get(spnegoKeytabKey))
+ builder.setUsernameConfKey(spnegoPrincipalKey)
+ .setKeytabConfKey(spnegoKeytabKey)
.setSecurityEnabled(UserGroupInformation.isSecurityEnabled());
}
{code}
[~decster], I believe that the null pointer checks are redundant as HttpServer
has already covered them.
> TestContainerManagerSecurity#testContainerManager fails
> -------------------------------------------------------
>
> Key: YARN-1463
> URL: https://issues.apache.org/jira/browse/YARN-1463
> Project: Hadoop YARN
> Issue Type: Test
> Reporter: Ted Yu
> Assignee: Binglin Chang
> Attachments: YARN-1463.v1.patch
>
>
> Here is stack trace:
> {code}
> testContainerManager[1](org.apache.hadoop.yarn.server.TestContainerManagerSecurity)
> Time elapsed: 1.756 sec <<< ERROR!
> org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.io.IOException:
> ResourceManager failed to start. Final state is STOPPED
> at
> org.apache.hadoop.yarn.server.MiniYARNCluster$ResourceManagerWrapper.serviceStart(MiniYARNCluster.java:253)
> at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
> at
> org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:121)
> at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
> at
> org.apache.hadoop.yarn.server.TestContainerManagerSecurity.testContainerManager(TestContainerManagerSecurity.java:110)
> {code}
--
This message was sent by Atlassian JIRA
(v6.1#6144)