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

Binglin Chang commented on YARN-1463:
-------------------------------------

bq. Webapps enables spnego authentication when security is enabled but no 
principals / keytabs are passed in. This configuration is wrong and it should 
fail.
I thought the same, but when I looked at the original code:
{code}
                  if (spnegoPrincipalKey == null
                      || conf.get(spnegoPrincipalKey, "").isEmpty()) {
                    LOG.warn("Principal for spnego filter is not set");
                    initSpnego = false;
                  }
                  if (spnegoKeytabKey == null
                      || conf.get(spnegoKeytabKey, "").isEmpty()) {
                    LOG.warn("Keytab for spnego filter is not set");
                    initSpnego = false;
                  }
{code}

The code make a WARN log instead of ERROR, it looks like a intentional 
behavior, so I keep the original behavior just for safe, thoughts?

> 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