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

DNS#reverseDns fails on IPv6 addresses

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      DNS#reverseDns assumes hostIp is a v4 address (4 parts separated by dots), blows up if given a v6 address:

      Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
              at org.apache.hadoop.net.DNS.reverseDns(DNS.java:79)
              at org.apache.hadoop.net.DNS.getHosts(DNS.java:237)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:340)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:358)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:337)
              at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:235)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1649)
      

        Attachments

        1. HADOOP-8568.patch
          2 kB
          Tony Kew

          Issue Links

            Activity

              People

              • Assignee:
                toynkew Tony Kew
                Reporter:
                eli Eli Collins
              • Votes:
                0 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: