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

Node Manager throws NPE on startup

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha, 0.23.4
    • nodemanager
    • None

    Description

      NM throws NPE on startup if it doesn't have persmission's on nm local dir's

      2012-05-14 16:32:13,468 FATAL org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting NodeManager
      org.apache.hadoop.yarn.YarnException: Failed to initialize LocalizationService
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.init(ResourceLocalizationService.java:202)
      	at org.apache.hadoop.yarn.service.CompositeService.init(CompositeService.java:58)
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.init(ContainerManagerImpl.java:183)
      	at org.apache.hadoop.yarn.service.CompositeService.init(CompositeService.java:58)
      	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.init(NodeManager.java:166)
      	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:268)
      	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:284)
      Caused by: java.io.IOException: mkdir of /mrv2/tmp/nm-local-dir/usercache failed
      	at org.apache.hadoop.fs.FileSystem.primitiveMkdir(FileSystem.java:907)
      	at org.apache.hadoop.fs.DelegateToFileSystem.mkdir(DelegateToFileSystem.java:143)
      	at org.apache.hadoop.fs.FilterFs.mkdir(FilterFs.java:189)
      	at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:706)
      	at org.apache.hadoop.fs.FileContext$4.next(FileContext.java:703)
      	at org.apache.hadoop.fs.FileContext$FSLinkResolver.resolve(FileContext.java:2325)
      	at org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:703)
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer.ResourceLocalizationService.init(ResourceLocalizationService.java:188)
      	... 6 more
      2012-05-14 16:32:13,472 INFO org.apache.hadoop.yarn.service.CompositeService: Error stopping org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.NonAggregatingLogHandler
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.loghandler.NonAggregatingLogHandler.stop(NonAggregatingLogHandler.java:82)
      	at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:99)
      	at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89)
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl.stop(ContainerManagerImpl.java:266)
      	at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:99)
      	at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89)
      	at org.apache.hadoop.yarn.server.nodemanager.NodeManager.stop(NodeManager.java:182)
      	at org.apache.hadoop.yarn.service.CompositeService$CompositeServiceShutdownHook.run(CompositeService.java:122)
      	at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:54)
      

      Attachments

        1. MAPREDUCE-4254.patch
          3 kB
          Devaraj Kavali
        2. YARN-42.txt
          3 kB
          Vinod Kumar Vavilapalli

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            devaraj Devaraj Kavali
            devaraj Devaraj Kavali
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment