Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11890 Uber-JIRA: Hadoop should support IPv6
  3. HADOOP-11990

DNS#reverseDns fails with a NumberFormatException when using an IPv6 DNS server

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.5.1
    • None
    • net
    • java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

    • Hide
      If your resolvers are ipv6 addresses make sure that you use one of the java versions listed in https://bugs.openjdk.java.net/browse/JDK-6991580

      jdk8u60, jdk8u65, or jdk9+
      Show
      If your resolvers are ipv6 addresses make sure that you use one of the java versions listed in https://bugs.openjdk.java.net/browse/JDK-6991580 jdk8u60, jdk8u65, or jdk9+

    Description

      With this resolv.conf:

      nameserver 192.168.1.1
      nameserver 2604:5500:3::3
      nameserver 2604:5500:3:3::3
      

      Starting HBase yields the following:

      Caused by: java.lang.NumberFormatException: For input string: "5500:3::3"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Integer.parseInt(Integer.java:492)
              at java.lang.Integer.parseInt(Integer.java:527)
              at com.sun.jndi.dns.DnsClient.<init>(DnsClient.java:122)
              at com.sun.jndi.dns.Resolver.<init>(Resolver.java:61)
              at com.sun.jndi.dns.DnsContext.getResolver(DnsContext.java:570)
              at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:430)
              at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:231)
              at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:139)
              at com.sun.jndi.toolkit.url.GenericURLDirContext.getAttributes(GenericURLDirContext.java:103)
              at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142)
              at org.apache.hadoop.net.DNS.reverseDns(DNS.java:84)
              at org.apache.hadoop.net.DNS.getHosts(DNS.java:241)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:344)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:362)
              at org.apache.hadoop.net.DNS.getDefaultHost(DNS.java:341)
              at org.apache.hadoop.hbase.regionserver.RSRpcServices.getHostname(RSRpcServices.java:825)
              at org.apache.hadoop.hbase.regionserver.RSRpcServices.<init>(RSRpcServices.java:782)
              at org.apache.hadoop.hbase.master.MasterRpcServices.<init>(MasterRpcServices.java:195)
              at org.apache.hadoop.hbase.master.HMaster.createRpcServices(HMaster.java:477)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.<init>(HRegionServer.java:492)
              at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:333)
              at org.apache.hadoop.hbase.master.HMasterCommandLine$LocalHMaster.<init>(HMasterCommandLine.java:276)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at org.apache.hadoop.hbase.util.JVMClusterUtil.createMasterThread(JVMClusterUtil.java:139)
              ... 7 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tsuna Benoit Sigoure
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: