hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4246) NPE while listing app attempt
Date Mon, 26 Oct 2015 09:06:27 GMT

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

Hudson commented on YARN-4246:
------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #1318 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/1318/])
YARN-4246. NPE while listing app attempt. (Nijel S F via rohithsharmaks) (rohithsharmaks:
rev b57f08c0d2dae57b545a3baa213e18464060ae3b)
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/ApplicationCLI.java
* hadoop-yarn-project/CHANGES.txt
* hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestYarnCLI.java


> NPE while listing app attempt
> -----------------------------
>
>                 Key: YARN-4246
>                 URL: https://issues.apache.org/jira/browse/YARN-4246
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Varun Saxena
>            Assignee: nijel
>             Fix For: 2.8.0
>
>         Attachments: YARN-4246_1.patch, YARN-4246_2.patch
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.yarn.client.cli.ApplicationCLI.listApplicationAttempts(ApplicationCLI.java:669)
> at org.apache.hadoop.yarn.client.cli.ApplicationCLI.run(ApplicationCLI.java:233)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
> at org.apache.hadoop.yarn.client.cli.ApplicationCLI.main(ApplicationCLI.java:89)
> {noformat}
> This is because AM container id can be null if AM container hasnt been allocated. In
ApplicationCLI#listApplicationAttempts we should check whether AM container ID is null instead
of directly calling toString.
> {code}
>       writer.printf(APPLICATION_ATTEMPTS_PATTERN, appAttemptReport
>           .getApplicationAttemptId(), appAttemptReport
>           .getYarnApplicationAttemptState(), appAttemptReport
>           .getAMContainerId().toString(), appAttemptReport.getTrackingUrl());
> {code}



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

Mime
View raw message