conf.setLong(DatanodeBenThread.MAX_TIME_SEC_KEY, maxtime);
conf.setLong(DatanodeBenThread.FILE_SIZE_KEY, filesize);
conf.setFloat(DatanodeBenThread.READ_PERCENT_KEY, pread);
conf.setLong(DatanodeBenThread.REPLICATION_KEY, rep);
List<JobConf> nameNodeConfs = DatanodeBenThread.getNameNodeConfs(conf);
DatanodeBenThread dbt = new DatanodeBenThread(conf);
List<DatanodeInfo> victims = dbt.getTestDatanodes(nameNodeConfs,
workdir, nDatanode, minFile);
System.out.print("We choose " + victims.size() + " victim datanodes: ");
String victimStr = "";
int i = 0;
for (DatanodeInfo victim: victims) {