[ https://issues.apache.org/jira/browse/YARN-6837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16094926#comment-16094926 ]
Hudson commented on YARN-6837: ------------------------------ SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #12038 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/12038/]) YARN-6837. Null LocalResource visibility or resource type can crash the (jlowe: rev c8df3668ecc37c2d58cad35520a762eaec3c8539) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/ContainerManagerImpl.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/test/java/org/apache/hadoop/yarn/api/records/impl/pb/TestApplicationClientProtocolRecords.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/TestContainerManager.java * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/api/records/impl/pb/ContainerLaunchContextPBImpl.java > Null LocalResource visibility or resource type can crash the nodemanager > ------------------------------------------------------------------------ > > Key: YARN-6837 > URL: https://issues.apache.org/jira/browse/YARN-6837 > Project: Hadoop YARN > Issue Type: Bug > Affects Versions: 3.0.0-alpha4 > Reporter: Jinjiang Ling > Assignee: Jinjiang Ling > Fix For: 2.9.0, 3.0.0-beta1, 2.8.2 > > Attachments: YARN-6837-1.patch, YARN-6837.patch > > > When I write an yarn application, I create a LocalResource like this > {quote} > LocalResource resource = Records.newRecord(LocalResource.class); > {quote} > Because I forget to set the visibilty of it, so the job is failed when I > submit it. > But NodeManager shutdown one by one at the same time, and there is > NullPointerExceptionin NodeManager's log: > {quote} > 2017-07-18 17:54:09,289 INFO > org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger: USER=hadoop > IP=10.43.156.177 OPERATION=Start Container Request > TARGET=ContainerManageImpl RESULT=SUCCESS > APPID=application_1499221670783_0067 > CONTAINERID=container_1499221670783_0067_02_000003 > 2017-07-18 17:54:09,292 FATAL org.apache.hadoop.yarn.event.AsyncDispatcher: > Error in dispatcher thread > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceSet.addResources(ResourceSet.java:84) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl$RequestResourcesTransition.transition(ContainerImpl.java:868) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl$RequestResourcesTransition.transition(ContainerImpl.java:819) > at > org.apache.hadoop.yarn.state.StateMachineFactory$MultipleInternalArc.doTransition(StateMachineFactory.java:385) > at > org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:302) > at > org.apache.hadoop.yarn.state.StateMachineFactory.access$300(StateMachineFactory.java:46) > at > org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:448) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl.handle(ContainerImpl.java:1684) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl.handle(ContainerImpl.java:96) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl$ContainerEventDispatcher.handle(ContainerManagerImpl.java:1418) > at > org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl$ContainerEventDispatcher.handle(ContainerManagerImpl.java:1411) > at > org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:197) > at > org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:126) > at java.lang.Thread.run(Thread.java:745) > 2017-07-18 17:54:09,292 INFO > org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl: > Start request for container_1499221670783_0067_02_000002 by user hadoop > {quote} > Then I change my code and still set the visibility to null > {quote} > LocalResource resource = LocalResource.newInstance( > URL.fromURI(dst.toUri()), > LocalResourceType.FILE, > {color:red}null{color}, > fileStatus.getLen(), > fileStatus.getModificationTime()); > {quote} > This error still happen. > At last I set the visibility to correct value, the error do not happen again. > So I think the visibility of LocalResource is null will cause NodeManager > shutdown. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org