Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3234

Locality scheduling broken due to mismatch between IPs and hosts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Duplicate
    • 0.23.0
    • None
    • mrv2
    • None

    Description

      I noticed that, on a single-rack cluster, I wasn't getting hardly any data locality. The issue appears to be the code in RMContainerAllocator which changes the resource requests to use IP addresses instead of hostnames:

                 //host comes from data splitLocations which are hostnames. Containers
                 // use IP addresses.
                 //TODO Temporary fix for locality. Use resolvers from h-common. 
                 // Cache to make this more efficient ?
      

      However, at least on my cluster, the resource manager sees node resources as hostnames, not IPs. Removing this code fixed data locality.

      Attachments

        1. MR-3234.1.patch
          2 kB
          Hitesh Shah

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: