String[] nodeGroups = new String[]{NODEGROUP0, NODEGROUP1};
int numOfDatanodes = capacities.length;
assertEquals(numOfDatanodes, racks.length);
MiniDFSClusterWithNodeGroup.setNodeGroups(nodeGroups);
cluster = new MiniDFSClusterWithNodeGroup(0, conf, capacities.length,
true, true, null, racks, capacities);
try {
cluster.waitActive();
client = DFSClient.createNamenode(conf);