hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lujie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7786) NullPointerException while launching ApplicationMaster
Date Wed, 18 Apr 2018 06:14:00 GMT

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

lujie commented on YARN-7786:
-----------------------------

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


Mime
View raw message