Package org.apache.hadoop.dfs

Examples of org.apache.hadoop.dfs.DataNode$DataNodeMetrics


      // start a third datanode
      cluster.startDataNodes(conf, 1, true, null, null);
      ArrayList<DataNode> datanodes = cluster.getDataNodes();
      assertEquals(datanodes.size(), 3);
      DataNode dataNode = datanodes.get(2);
     
      // report corrupted block by the third datanode
      cluster.getNameNode().namesystem.markBlockAsCorrupt(blk,
          new DatanodeInfo(dataNode.dnRegistration ));
     
View Full Code Here

TOP

Related Classes of org.apache.hadoop.dfs.DataNode$DataNodeMetrics

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.