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

Duplicate data node name calculation in Datanode constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • None
    • None
    • None

    Description

      A data node name is calculated twice when a DataNode object is constructed. One is computed at line 158 in DataNode.java using the statement:

      InetAddress.getLocalHost().getHostName().

      The value is passed the private DataNode constructor but is never used. The name is recomputed at lines 189-192 using the statement:

      DNS.getDefaultHost(
      conf.get("dfs.datanode.dns.interface", "default"),
      conf.get("dfs.datanode.dns.nameserver", "default"))".

      Attachments

        Issue Links

          Activity

            People

              rangadi Raghu Angadi
              hairong Hairong Kuang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: