Package org.apache.hadoop.hdfs.server.namenode

Examples of org.apache.hadoop.hdfs.server.namenode.FSNamesystem.datanodeReport()


    long start = System.currentTimeMillis();
    // Wait for atleast 3 full block reports from the datanode.
    while (System.currentTimeMillis() - start <= MAX_WAIT_TIME) {

      // This makes sure we trigger, redudant addStoredBlocks() on the NameNode.
      for (DatanodeInfo dn : ns.datanodeReport(DatanodeReportType.ALL)) {
        ns.unprotectedRemoveDatanode(ns.getDatanode(dn));
      }
      Thread.sleep(200);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.