[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632484#comment-14632484 ] Hudson commented on YARN-3905: -- SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2206 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2206/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632478#comment-14632478 ] Hudson commented on YARN-3905: -- SUCCESS: Integrated in Hadoop-Mapreduce-trunk-Java8 #257 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/257/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java * hadoop-yarn-project/CHANGES.txt > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632452#comment-14632452 ] Hudson commented on YARN-3905: -- FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #249 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/249/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java * hadoop-yarn-project/CHANGES.txt > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632444#comment-14632444 ] Hudson commented on YARN-3905: -- FAILURE: Integrated in Hadoop-Hdfs-trunk #2187 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2187/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632372#comment-14632372 ] Hudson commented on YARN-3905: -- FAILURE: Integrated in Hadoop-Yarn-trunk #990 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/990/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java * hadoop-yarn-project/CHANGES.txt > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14632367#comment-14632367 ] Hudson commented on YARN-3905: -- FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #260 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/260/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/CHANGES.txt * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Fix For: 3.0.0, 2.8.0, 2.7.2 > > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631530#comment-14631530 ] Hudson commented on YARN-3905: -- FAILURE: Integrated in Hadoop-trunk-Commit #8180 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/8180/]) YARN-3905. Application History Server UI NPEs when accessing apps run after RM restart (Eric Payne via jeagles) (jeagles: rev 7faae0e6fe027a3886d9f4e290b6a488a2c55b3a) * hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java * hadoop-yarn-project/CHANGES.txt > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631501#comment-14631501 ] Jonathan Eagles commented on YARN-3905: --- +1. Committing this patch [~eepayne]. > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631395#comment-14631395 ] Hadoop QA commented on YARN-3905: - \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:red}-1{color} | pre-patch | 17m 16s | Pre-patch trunk has 6 extant Findbugs (version 3.0.0) warnings. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:red}-1{color} | tests included | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | | {color:green}+1{color} | javac | 8m 31s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 10m 23s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 21s | The applied patch does not increase the total number of release audit warnings. | | {color:green}+1{color} | checkstyle | 0m 35s | There were no new checkstyle issues. | | {color:green}+1{color} | whitespace | 0m 0s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 28s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 34s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 7s | The patch does not introduce any new Findbugs (version 3.0.0) warnings. | | {color:green}+1{color} | yarn tests | 0m 25s | Tests passed in hadoop-yarn-server-common. | | | | 40m 44s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12745819/YARN-3905.002.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 9b272cc | | Pre-patch Findbugs warnings | https://builds.apache.org/job/PreCommit-YARN-Build/8572/artifact/patchprocess/trunkFindbugsWarningshadoop-yarn-server-common.html | | hadoop-yarn-server-common test log | https://builds.apache.org/job/PreCommit-YARN-Build/8572/artifact/patchprocess/testrun_hadoop-yarn-server-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/8572/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf907.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/8572/console | This message was automatically generated. > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Attachments: YARN-3905.001.patch, YARN-3905.002.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTa
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14630472#comment-14630472 ] Hadoop QA commented on YARN-3905: - \\ \\ | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:red}-1{color} | pre-patch | 17m 14s | Pre-patch trunk has 6 extant Findbugs (version 3.0.0) warnings. | | {color:green}+1{color} | @author | 0m 0s | The patch does not contain any @author tags. | | {color:red}-1{color} | tests included | 0m 0s | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | | {color:green}+1{color} | javac | 8m 29s | There were no new javac warning messages. | | {color:green}+1{color} | javadoc | 10m 23s | There were no new javadoc warning messages. | | {color:green}+1{color} | release audit | 0m 21s | The applied patch does not increase the total number of release audit warnings. | | {color:red}-1{color} | checkstyle | 0m 37s | The applied patch generated 1 new checkstyle issues (total was 39, now 40). | | {color:green}+1{color} | whitespace | 0m 0s | The patch has no lines that end in whitespace. | | {color:green}+1{color} | install | 1m 23s | mvn install still works. | | {color:green}+1{color} | eclipse:eclipse | 0m 35s | The patch built with eclipse:eclipse. | | {color:green}+1{color} | findbugs | 1m 9s | The patch does not introduce any new Findbugs (version 3.0.0) warnings. | | {color:green}+1{color} | yarn tests | 0m 25s | Tests passed in hadoop-yarn-server-common. | | | | 40m 39s | | \\ \\ || Subsystem || Report/Notes || | Patch URL | http://issues.apache.org/jira/secure/attachment/12745708/YARN-3905.001.patch | | Optional Tests | javadoc javac unit findbugs checkstyle | | git revision | trunk / 0bda84f | | Pre-patch Findbugs warnings | https://builds.apache.org/job/PreCommit-YARN-Build/8562/artifact/patchprocess/trunkFindbugsWarningshadoop-yarn-server-common.html | | checkstyle | https://builds.apache.org/job/PreCommit-YARN-Build/8562/artifact/patchprocess/diffcheckstylehadoop-yarn-server-common.txt | | hadoop-yarn-server-common test log | https://builds.apache.org/job/PreCommit-YARN-Build/8562/artifact/patchprocess/testrun_hadoop-yarn-server-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/8562/testReport/ | | Java | 1.7.0_55 | | uname | Linux asf907.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/8562/console | This message was automatically generated. > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Attachments: YARN-3905.001.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > org.apach
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14630452#comment-14630452 ] Jonathan Eagles commented on YARN-3905: --- +1. [~eepayne], retargetting for 2.7.2 since 2.7.1 is already released. > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > Attachments: YARN-3905.001.patch > > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (YARN-3905) Application History Server UI NPEs when accessing apps run after RM restart
[ https://issues.apache.org/jira/browse/YARN-3905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14621281#comment-14621281 ] Eric Payne commented on YARN-3905: -- {{org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable}} constructs what it believes should be the AM container ID when creating a new {{GetContainerReportRequest}}. {code} // AM container is always the first container of the attempt final GetContainerReportRequest request = GetContainerReportRequest.newInstance(ContainerId.newContainerId( appAttemptReport.getApplicationAttemptId(), 1)); {code} - After the RM is restarted, container IDs contain an {{e##}} string, which the above code doesn't take into consideration - The AM container is not always _01 due to the way reservations work. We have seen "non-first" AM containers in practice. As a result of the above code, the container ID in the {{GetContainerReportRequest}} may not match the actual AM container ID before RM restart, and will not match those for jobs run after the RM is restarted. So, When {{ApplicationHistoryManagerImpl}} compares the ID of the passed container with it's cache from the history store, it can't find a match and throws the NPE. In {{AppBlock#generateApplicationTable}}, instead of constructing the AM's container ID, I suggest using appAttemptReport#getAMContainerId instead: {code} final GetContainerReportRequest request = GetContainerReportRequest.newInstance( appAttemptReport.getAMContainerId()); {code} > Application History Server UI NPEs when accessing apps run after RM restart > --- > > Key: YARN-3905 > URL: https://issues.apache.org/jira/browse/YARN-3905 > Project: Hadoop YARN > Issue Type: Bug > Components: timelineserver >Affects Versions: 2.7.0, 2.8.0, 2.7.1 >Reporter: Eric Payne >Assignee: Eric Payne > > From the Application History URL (http://RmHostName:8188/applicationhistory), > clicking on the application ID of an app that was run after the RM daemon has > been restarted results in a 500 error: > {noformat} > Sorry, got error 500 > Please consult RFC 2616 for meanings of the error code. > {noformat} > The stack trace is as follows: > {code} > 2015-07-09 20:13:15,584 [2068024519@qtp-769046918-3] INFO > applicationhistoryservice.FileSystemApplicationHistoryStore: Completed > reading history information of all application attempts of application > application_1436472584878_0001 > 2015-07-09 20:13:15,591 [2068024519@qtp-769046918-3] ERROR webapp.AppBlock: > Failed to read the AM container of the application attempt > appattempt_1436472584878_0001_01. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.convertToContainerReport(ApplicationHistoryManagerImpl.java:206) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryManagerImpl.getContainer(ApplicationHistoryManagerImpl.java:199) > at > org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryClientService.getContainerReport(ApplicationHistoryClientService.java:205) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:272) > at > org.apache.hadoop.yarn.server.webapp.AppBlock$3.run(AppBlock.java:267) > 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:1666) > at > org.apache.hadoop.yarn.server.webapp.AppBlock.generateApplicationTable(AppBlock.java:266) > ... > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)