You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Nemon Lou (JIRA)" <ji...@apache.org> on 2013/09/16 04:54:52 UTC

[jira] [Commented] (YARN-1201) TestAMAuthorization fails with NullPointer when hostname has '-'

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

Nemon Lou commented on YARN-1201:
---------------------------------

After changing setting in hadoop-yarn-server-resourcemanager,the test will pass.
The detail is :changing "hadoop.security.token.service.use_ip"  from false to true in hadoop-yarn-server-resourcemanager/src/test/resources/core-site.xml.
                
> TestAMAuthorization fails with NullPointer when hostname has '-'
> ----------------------------------------------------------------
>
>                 Key: YARN-1201
>                 URL: https://issues.apache.org/jira/browse/YARN-1201
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.1.0-beta
>         Environment: SUSE Linux Enterprise Server 11 (x86_64)
>            Reporter: Nemon Lou
>            Priority: Minor
>
> When hostname is 158-1-131-10, TestAMAuthorization fails.
> {code}
> Running org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization
> Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 14.034 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization
> testUnauthorizedAccess[0](org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization)  Time elapsed: 3.952 sec  <<< ERROR!
> java.lang.NullPointerException: null
>         at org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization.testUnauthorizedAccess(TestAMAuthorization.java:284)
> testUnauthorizedAccess[1](org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization)  Time elapsed: 3.116 sec  <<< ERROR!
> java.lang.NullPointerException: null
>         at org.apache.hadoop.yarn.server.resourcemanager.TestAMAuthorization.testUnauthorizedAccess(TestAMAuthorization.java:284)
> Results :
> Tests in error:
>   TestAMAuthorization.testUnauthorizedAccess:284 NullPointer
>   TestAMAuthorization.testUnauthorizedAccess:284 NullPointer
> Tests run: 4, Failures: 0, Errors: 2, Skipped: 0
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira