Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2106 Umbrella JIRA for separating block management and name space management in NameNode
  3. HDFS-2363

Move datanodes size printing to BlockManager from FSNameSystem's metasave API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.0, 2.0.0-alpha
    • 0.23.0
    • namenode
    • None
    • Reviewed

    Description

            final List<DatanodeDescriptor> live = new ArrayList<DatanodeDescriptor>();
            final List<DatanodeDescriptor> dead = new ArrayList<DatanodeDescriptor>();
            blockManager.getDatanodeManager().fetchDatanodes(live, dead, false);
            out.println("Live Datanodes: "+live.size());
            out.println("Dead Datanodes: "+dead.size());
            blockManager.metaSave(out);
      

      Logically all the dataNode related logic can be moved to BlockManager.

      So, here metaSave API is getting the DataNodes details from blockManager to FsNameSystem and after printing the details again it is giving the control to blockManager.

      It will be good to move the DNs size printing code also to BlockManager.

      Attachments

        1. HDFS-2363.patch
          2 kB
          Uma Maheswara Rao G

        Activity

          People

            umamaheswararao Uma Maheswara Rao G
            umamaheswararao Uma Maheswara Rao G
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: