[ 
https://issues.apache.org/jira/browse/YARN-1463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13837264#comment-13837264
 ] 

Haohui Mai commented on YARN-1463:
----------------------------------

Based on the stack traces, it seems to me that there're two issues here.

First, HDFS-5545 introduces a bug so that it is passing null as the 
configuration key of principals / keytabs into the HttpServer.Builder. The 
attached patch fixes the problem.

Second, Webapps enables spnego authentication when security is enabled but no 
principals / keytabs are passed in. This configuration is wrong and it should 
fail. Therefore, in my opinion it is problematic to mask the failures in 
WebApps.java. Maybe we should fix the unit test instead.

> 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.000.patch, 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)

Reply via email to