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

DFS Scalabilty: Improve name node performance by adding a hostname to datanodes map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.2
    • 0.13.0
    • None
    • None

    Description

      A name node currently maintains a datanode map which maps a storage id to a dataNodeDescriptor. When the name node needs to get a datanodeDescriptor by its name (hostname:port#) or by its host name, it has to iterate through the data node set, which is very inefficent. I'd like to add an additional map that maps a host name to an array list of DatanodeDescriptors that contains all the data nodes running on the host. Since most of time a node runs only one data node, the intial size of the array list is set to be 1.

      Attachments

        1. host2Datanode.patch
          11 kB
          Hairong Kuang
        2. Host2NodesMap.patch
          11 kB
          Hairong Kuang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: