Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8304

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.0.0, 2.0.0-alpha
    • 2.0.0-alpha
    • io
    • 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.

      Attachments

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

        Activity

          People

            junping_du Junping Du
            junping_du Junping Du
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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