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

Jonathan Hung commented on YARN-7396:
-------------------------------------

001: simple patch which does dirsHandler initialization before NMContext 
initialization.

[~leftnoteasy]/[~sunilg], could you take a look at this? Thanks!

> NPE when accessing container logs due to null dirsHandler
> ---------------------------------------------------------
>
>                 Key: YARN-7396
>                 URL: https://issues.apache.org/jira/browse/YARN-7396
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jonathan Hung
>            Assignee: Jonathan Hung
>         Attachments: YARN-7396.001.patch
>
>
> {noformat}java.lang.NullPointerException
>       at 
> org.apache.hadoop.yarn.server.nodemanager.webapp.NMWebAppFilter.containerLogPageRedirectPath(NMWebAppFilter.java:96)
>       at 
> org.apache.hadoop.yarn.server.nodemanager.webapp.NMWebAppFilter.doFilter(NMWebAppFilter.java:62)
>       at 
> com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:829){noformat}
> In YARN-6620 the NMContext creation in {{NodeManager#serviceInit}} was moved. 
> It's now created before the dirsHandler is initialized. So when 
> {{nmContext.getLocalDirsHandler}} is called, it's null.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to