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

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


       try {
         num = namesystem.countNodes(block);
       } finally {
         namesystem.readUnlock();
       }
      } while (num.liveReplicas() != REPLICATION_FACTOR);
     
      LOG.info("Restarting first DN");
      // restart the first datanode
      cluster.restartDataNode(dnprop);
      cluster.waitActive(false);
View Full Code Here


        int totalCount = 0;
        namesystem.readLock();
        try {
          for (LocatedBlock block : blocks.getLocatedBlocks()) {
            num = namesystem.countNodes(block.getBlock());
            totalCount += num.liveReplicas();
          }
          if (totalCount == rsCodec.numDataBlocks) {
            break;
          } else {
            LOG.info("wait for block report, received total replicas: " + totalCount);
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.