You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "lujie (JIRA)" <ji...@apache.org> on 2018/04/18 06:15:00 UTC
[jira] [Comment Edited] (YARN-7786) NullPointerException while
launching ApplicationMaster
[ https://issues.apache.org/jira/browse/YARN-7786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16441947#comment-16441947 ]
lujie edited comment on YARN-7786 at 4/18/18 6:14 AM:
------------------------------------------------------
[~jlowe]:
I have update the patch:
* fix some handy check-style error in other place.
* Instead of "move TestApplicationMasterLauncher into the same package as the class it is testing", I bethink of your suggestion when I fixing the bug YARN-7663, i think it is also suitable here. i.e. add protected method to catch the exception while launch, and check if the exception instanceof NullPointerException.
was (Author: xiaoheipangzi):
[~jlowe]:
I have update the patch:
* fix some handy check-style error in other place.
* Instead of "move TestApplicationMasterLauncher into the same package as the class it is testing", I bethink of your suggestion when I fixing the bug [YARN-7663|https://issues.apache.org/jira/browse/YARN-7663], i think it is also suitable. i.e. add protected method to catch the exception while launch, and check if the exception instanceof NullPointerException.
> NullPointerException while launching ApplicationMaster
> ------------------------------------------------------
>
> Key: YARN-7786
> URL: https://issues.apache.org/jira/browse/YARN-7786
> Project: Hadoop YARN
> Issue Type: Bug
> Affects Versions: 3.0.0-beta1
> Reporter: lujie
> Assignee: lujie
> Priority: Minor
> Attachments: YARN-7786.patch, YARN-7786_1.patch, YARN-7786_2.patch, YARN-7786_3.patch, YARN-7786_4.patch, resourcemanager.log
>
>
> Before launching the ApplicationMaster, send kill command to the job, then some Null pointer appears:
> {code}
> 2017-11-25 21:27:25,333 INFO org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher: Error launching appattempt_1511616410268_0001_000001. Got exception: java.lang.NullPointerException
> at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.setupTokens(AMLauncher.java:205)
> at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.createAMContainerLaunchContext(AMLauncher.java:193)
> at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:112)
> at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:304)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org