Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14594

Use new DNS API introduced in HADOOP-12437

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      HADOOP-12437 introduced a new API to org.apache.hadoop.net.DNS: getDefaultHost(String, String, boolean).

      The purpose of this method (the boolean argument really) is to change the functionality so that when rDNS fails, InetAddress#getCanonicalHostName() is consulted which includes resolution via the hosts file.

      The direct application of this new method is relevant on hosts with multiples NICs and Kerberos enabled.

      Sadly, this method only exists in 2.8.0-SNAPSHOT, so to benefit from the fix without great pain, some reflection is required.

      Attachments

        1. HBASE-14594.001.patch
          11 kB
          Josh Elser
        2. HBASE-14594.002.patch
          11 kB
          Josh Elser
        3. HBASE-14594-0.98.patch
          12 kB
          Josh Elser
        4. HBASE-14594-branch-1.0.patch
          10 kB
          Josh Elser

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: