// namenode restart accounted for the twice-rolled edit logs.
//
try {
cluster = new MiniDFSCluster.Builder(conf).numDataNodes(numDatanodes)
.format(false).build();
cluster.waitActive();
fileSys = cluster.getFileSystem();
checkFile(fileSys, file1, replication);
cleanupFile(fileSys, file1);
secondary = startSecondaryNameNode(conf);
secondary.doCheckpoint();