MiniDFSClusterWithNodeGroup.setNodeGroups(nodeGroup1);
// start the dfs cluster with datanode1 only.
dfs = new MiniDFSClusterWithNodeGroup(0, conf, 1,
true, true, null, rack1, hosts1, null);
dfs.waitActive();
fileSys = dfs.getFileSystem();
if (!fileSys.mkdirs(inDir)) {
throw new IOException("Mkdirs failed to create " + inDir.toString());
}
// write file1 on datanode1 with 1 replica