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

SecureUtil#getByName should also try to resolve direct hostname, incase multiple loopback addresses are present in /etc/hosts

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Target Version/s:

      Description

      From https://builds.apache.org/job/PreCommit-YARN-Build/9661/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-client-jdk1.7.0_79.txt, we can see the tests in TestYarnClient, TestAMRMClient and TestNMClient get timeout which can be reproduced locally.

      When /etc/hosts has multiple loopback entries, InetAddress.getByName(null) will be returning the first entry present in etc/hosts. Hence its possible that machine hostname can be second in list and cause UnKnownHostException.

      Suggesting a direct resolve for such hostname scenarios.

        Attachments

        1. 0001-YARN-4352.patch
          0.9 kB
          Sunil G
        2. 0002-YARN-4352.patch
          1 kB
          Sunil G
        3. 0003-HADOOP-12687.patch
          0.9 kB
          Sunil G
        4. 0004-HADOOP-12687.patch
          0.9 kB
          Sunil G

          Issue Links

            Activity

              People

              • Assignee:
                sunilg Sunil G
                Reporter:
                junping_du Junping Du
              • Votes:
                0 Vote for this issue
                Watchers:
                23 Start watching this issue

                Dates

                • Created:
                  Updated: