Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development