Package org.apache.hadoop.hdfs.server.datanode

Examples of org.apache.hadoop.hdfs.server.datanode.DatanodeBlockInfo


          FSDataset fsd = null;
          for (DataNode dn : cluster.getDataNodes()) {
            if (portSet.contains(dn.getPort())) {
              fsd = (FSDataset) (dn.data);
              TestCase.assertNotNull(fsd);
              DatanodeBlockInfo binfo = fsd.getDatanodeBlockInfo(nsId,
                  locatedblock.getBlock());
              TestCase.assertNotNull(binfo);
              long waitTimeLeft = 20000;
              while (true) {
                if (binfo.hasBlockCrcInfo()) {
                  break;
                } else {
                  if (waitTimeLeft > 0) {
                    waitTimeLeft -= 100;
                    System.out.println("Sleep while waiting for datanode " + dn
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hdfs.server.datanode.DatanodeBlockInfo

Copyright © 2018 www.massapicom. 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.