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 "Jonathan Hung (JIRA)" <ji...@apache.org> on 2017/10/26 00:05:00 UTC

[jira] [Commented] (YARN-7396) NPE when accessing container logs due to null dirsHandler

    [ 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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org