System.out.println("p=" + p);
MiniDFSCluster cluster = new MiniDFSCluster(conf, DATANODE_NUM, true, null);
DistributedFileSystem fs = (DistributedFileSystem)cluster.getFileSystem();
DataNodeInstrumentation metrics = spy(cluster.getDataNodes().get(0).myMetrics);
DelayAnswer delayAnswer = new DelayAnswer();
doAnswer(delayAnswer).when(metrics).incrBytesWritten(anyInt());
try {
// create a new file.