Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7396

NPE when accessing container logs due to null dirsHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 2.10.0
    • None
    • None
    • Reviewed

    Description

      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)

      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.

      Attachments

        1. YARN-7396.001.patch
          1 kB
          Jonathan Hung

        Issue Links

          Activity

            People

              jhung Jonathan Hung
              jhung Jonathan Hung
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: