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

Zhijie Shen commented on YARN-2900:
-----------------------------------

bq.  This is my setup, which I believe is a supported configuration for 2.6.0.

Yeah, the configuration should be supported. However, with the configuration, 
ApplicationHistoryManagerOnTimelineStore should be used instead. Here's the 
related code in ApplicationHistoryServer.
{code}
  private ApplicationHistoryManager createApplicationHistoryManager(
      Configuration conf) {
    // Backward compatibility:
    // APPLICATION_HISTORY_STORE is neither null nor empty, it means that the
    // user has enabled it explicitly.
    if (conf.get(YarnConfiguration.APPLICATION_HISTORY_STORE) == null ||
        conf.get(YarnConfiguration.APPLICATION_HISTORY_STORE).length() == 0 ||
        conf.get(YarnConfiguration.APPLICATION_HISTORY_STORE).equals(
            NullApplicationHistoryStore.class.getName())) {
      return new ApplicationHistoryManagerOnTimelineStore(
          timelineDataManager, aclsManager);
    } else {
      LOG.warn("The filesystem based application history store is deprecated.");
      return new ApplicationHistoryManagerImpl();
    }
  }
{code}

I tested this config locally. It seems that the new 
ApplicationHistoryManagerOnTimelineStore was picked. If it doesn't pick the 
right manager, then it is really bad.

But given ApplicationHistoryManagerOnTimelineStore is picked, we shouldn't see 
NPE exception in the description.

> Application Not Found in AHS throws Internal Server Error with NPE
> ------------------------------------------------------------------
>
>                 Key: YARN-2900
>                 URL: https://issues.apache.org/jira/browse/YARN-2900
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Jonathan Eagles
>            Assignee: Mit Desai
>         Attachments: YARN-2900.patch
>
>
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToApplicationReport(ApplicationHistoryManagerImpl.java:128)
>       at 
> org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getApplication(ApplicationHistoryManagerImpl.java:118)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices$2.run(WebServices.java:222)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices$2.run(WebServices.java:219)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:415)
>       at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1679)
>       at 
> org.apache.hadoop.yarn.server.webapp.WebServices.getApp(WebServices.java:218)
>       ... 59 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to