Hadoop Common
  1. Hadoop Common
  2. HADOOP-8304

DNSToSwitchMapping should add interface to resolve individual host besides a list of host

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 1.0.0, 2.0.0-alpha
    • Fix Version/s: 2.0.0-alpha
    • Component/s: io
    • Labels:
      None

      Description

      DNSToSwitchMapping now has only one API to resolve a host list: public List<String> resolve(List<String> names). But the two major caller: RackResolver.resolve() and DatanodeManager.resolveNetworkLocation() are taking single host name but have to wrapper it to an single entry ArrayList. This is not necessary especially the host has been cached before.

      1. HADOOP-8304-V2.patch
        12 kB
        Junping Du
      2. HADOOP-8304-V2.patch
        12 kB
        Junping Du
      3. HADOOP-8304.patch
        17 kB
        Junping Du

        Activity

          People

          • Assignee:
            Junping Du
            Reporter:
            Junping Du
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 48h
              48h
              Remaining:
              Remaining Estimate - 48h
              48h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development