Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5681

TestJHSSecurity fails on trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      -------------------------------------------------------
       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
      

      Did some preliminary investigation, in HistoryClientService:

              .withHttpSpnegoPrincipalKey(
                  JHAdminConfig.MR_WEBAPP_SPNEGO_USER_NAME_KEY)
      

      MR_WEBAPP_SPNEGO_USER_NAME_KEY seems not to be in the configuration.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zjshen Zhijie Shen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: