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

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.0, 2.0.0-alpha
    • Fix Version/s: 0.23.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      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

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: