cluster = new MiniDFSCluster(conf, 3, new String[] { "/r1", "/r2",
NetworkTopology.DEFAULT_RACK }, new String[] { "h1", "h2", "h3" },
true, false);
DFSTestUtil util = new DFSTestUtil("/testStartup", 10, 10, 1024);
util.createFiles(cluster.getFileSystem(), "/");
util.checkFiles(cluster.getFileSystem(), "/");
assertEquals(2,
cluster.getNameNode().getDatanodeReport(DatanodeReportType.LIVE).length);
cluster.shutdown();
}
}