Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-23235

Use EIP in /etc/hosts cause binding error when running java problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Jenkins
    • None
    • HBase

    Description

      At least on hbase3, we have this in /etc/hosts

      127.0.0.1 localhost
      # 172.31.12.81 jenkins-hbase3
      44.239.2.152 jenkins-hbase3.apache.org jenkins-hbase3§

      # The following lines are desirable for IPv6 capable hosts
      ::1 ip6-localhost ip6-loopback
      fe00::0 ip6-localnet
      ff00::0 ip6-mcastprefix
      ff02::1 ip6-allnodes
      ff02::2 ip6-allrouters
      ff02::3 ip6-allhosts

      The jenkins-hbase3.apache.org and jenkins-hbase3 were both resolved to the EIP 44.239.2.152, but the actual IP of this node should be 172.31.12.81. This causes test failure on these nodes because of BindException.

      org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.net.BindException: Problem binding to [jenkins-hbase3.apache.org:0] java.net.BindException: Cannot assign requested address

      I think on the local machine, we should just resolve them to the local IP, not the EIP.

      PTAL. Thanks.

      Attachments

        Issue Links

          Activity

            People

              gmcdonald Gavin McDonald
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: