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

NPE in RackResolve

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.5-alpha
    • 2.2.0
    • None
    • None
    • linux

    • Reviewed

    Description

      We found a case where our rack resolve script was not returning rack due to problem with resolving host address. This exception was see in RackResolver.java as NPE, ultimately caught in RMContainerAllocator.

      2013-08-01 07:11:37,708 ERROR [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: ERROR IN CONTACTING RM. 
      java.lang.NullPointerException
      	at org.apache.hadoop.yarn.util.RackResolver.coreResolve(RackResolver.java:99)
      	at org.apache.hadoop.yarn.util.RackResolver.resolve(RackResolver.java:92)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator$ScheduledRequests.assignMapsWithLocality(RMContainerAllocator.java:1039)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator$ScheduledRequests.assignContainers(RMContainerAllocator.java:925)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator$ScheduledRequests.assign(RMContainerAllocator.java:861)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator$ScheduledRequests.access$400(RMContainerAllocator.java:681)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator.heartbeat(RMContainerAllocator.java:219)
      	at org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator$1.run(RMCommunicator.java:243)
      	at java.lang.Thread.run(Thread.java:722)
      
      

      Attachments

        1. YARN-1032.1.patch
          1 kB
          Lohit Vijaya Renu
        2. YARN-1032.2.patch
          3 kB
          Lohit Vijaya Renu
        3. YARN-1032.3.patch
          3 kB
          Vinod Kumar Vavilapalli

        Activity

          People

            lohit Lohit Vijaya Renu
            lohit Lohit Vijaya Renu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: