You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2013/12/14 00:37:08 UTC

[jira] [Created] (MAPREDUCE-5681) TestJHSSecurity fails

Zhijie Shen created MAPREDUCE-5681:
--------------------------------------

             Summary: TestJHSSecurity fails
                 Key: MAPREDUCE-5681
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5681
             Project: Hadoop Map/Reduce
          Issue Type: Bug
            Reporter: Zhijie Shen


{code}
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.hadoop.mapreduce.security.TestJHSSecurity
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.763 sec <<< FAILURE! - in org.apache.hadoop.mapreduce.security.TestJHSSecurity
testDelegationToken(org.apache.hadoop.mapreduce.security.TestJHSSecurity)  Time elapsed: 1.56 sec  <<< ERROR!
java.lang.NullPointerException: null
	at java.util.Hashtable.get(Hashtable.java:334)
	at java.util.Properties.getProperty(Properties.java:932)
	at org.apache.hadoop.conf.Configuration.get(Configuration.java:874)
	at org.apache.hadoop.http.HttpServer.initSpnego(HttpServer.java:892)
	at org.apache.hadoop.http.HttpServer.access$100(HttpServer.java:101)
	at org.apache.hadoop.http.HttpServer$Builder.build(HttpServer.java:323)
	at org.apache.hadoop.yarn.webapp.WebApps$Builder.start(WebApps.java:232)
	at org.apache.hadoop.mapreduce.v2.hs.HistoryClientService.initializeWebApp(HistoryClientService.java:149)
	at org.apache.hadoop.mapreduce.v2.hs.HistoryClientService.serviceStart(HistoryClientService.java:118)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
	at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:121)
	at org.apache.hadoop.mapreduce.v2.hs.JobHistoryServer.serviceStart(JobHistoryServer.java:175)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
	at org.apache.hadoop.mapreduce.security.TestJHSSecurity.testDelegationToken(TestJHSSecurity.java:100)


Results :

Tests in error: 
  TestJHSSecurity.testDelegationToken:100 ? NullPointer

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
{code}

Did some preliminary investigation, in HistoryClientService:
{code}
        .withHttpSpnegoPrincipalKey(
            JHAdminConfig.MR_WEBAPP_SPNEGO_USER_NAME_KEY)
{code}
MR_WEBAPP_SPNEGO_USER_NAME_KEY seems not to be in the configuration.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)