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

          Hide
          Hitesh Shah added a comment -

          Should be fixed with the patch in MR-2693.

          @Todd, could you try your runs again with the latest code.

          Show
          Hitesh Shah added a comment - Should be fixed with the patch in MR-2693. @Todd, could you try your runs again with the latest code.
          Hide
          Hitesh Shah added a comment -

          Adding a patch for some imports that should have been removed when the code to convert splitLocation hostnames to ips was removed.

          Show
          Hitesh Shah added a comment - Adding a patch for some imports that should have been removed when the code to convert splitLocation hostnames to ips was removed.
          Hide
          Todd Lipcon added a comment -

          Yep, it seems like 2693 fixed this. Thanks!

          Show
          Todd Lipcon added a comment - Yep, it seems like 2693 fixed this. Thanks!

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development