Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-3234

Locality scheduling broken due to mismatch between IPs and hosts

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 0.23.0
    • Fix Version/s: None
    • Component/s: mrv2
    • Labels:
      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.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development