[ https://issues.apache.org/jira/browse/YARN-4460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Li Lu updated YARN-4460: ------------------------ Attachment: YARN-4460-feature-YARN-2928.001.patch Upload a patch to quickly fix this issue. I moved event handler registration logic to serviceInit, and changed UTs to cover this accordingly. > [Bug fix] RM fails to start when SMP is enabled > ----------------------------------------------- > > Key: YARN-4460 > URL: https://issues.apache.org/jira/browse/YARN-4460 > Project: Hadoop YARN > Issue Type: Sub-task > Components: timelineserver > Affects Versions: YARN-2928 > Reporter: Li Lu > Assignee: Li Lu > Attachments: YARN-4460-feature-YARN-2928.001.patch > > > When SMP is enabled, the RM starts with the following fatal message: > {code} > FATAL event.AsyncDispatcher (AsyncDispatcher.java:dispatch(189)) - Error in > dispatcher thread true > java.lang.Exception: No handler for registered for class > org.apache.hadoop.yarn.server.resourcemanager.metrics.AbstractSystemMetricsPubli > sher$SystemMetricsEventType > at > org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:185) > at > org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:109) > at java.lang.Thread.run(Thread.java:745) > {code} > We should register event handlers in service init stage in > TimelineServiceV2Publisher to fix this problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)