Hadoop Common
  1. Hadoop Common
  2. HADOOP-8372

normalizeHostName() in NetUtils is not working properly in resolving a hostname start with numeric character

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.23.0
    • Fix Version/s: 2.0.2-alpha
    • Component/s: io, util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      A valid host name can start with numeric value (You can refer RFC952, RFC1123 or http://www.zytrax.com/books/dns/apa/names.html), so it is possible in a production environment, user name their hadoop nodes as: 1hosta, 2hostb, etc. But normalizeHostName() will recognise this hostname as IP address and return directly rather than resolving the real IP address. These nodes will be failed to get correct network topology if topology script/TableMapping only contains their IPs (without hostname).

      1. HADOOP-8372-v3.patch
        5 kB
        Junping Du
      2. HADOOP-8372-v2.patch
        5 kB
        Junping Du
      3. HADOOP-8372.patch
        3 kB
        Junping Du
      4. HADOOP-8372.patch
        5 kB
        Suresh Srinivas

        Issue Links

          Activity

            People

            • Assignee:
              Junping Du
              Reporter:
              Junping Du
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development