for (int rack = 1; rack <= numRacks; rack++) {
for (int node = 1; node <= numTrackersPerRack; node++) {
int id = nextTrackerId++;
String host = "rack" + rack + ".node" + node;
System.out.println("Creating TaskTracker tt" + id + " on " + host);
TaskTracker tt = new TaskTracker("tt" + id);
tt.setStatus(new TaskTrackerStatus("tt" + id, host, 0,
new ArrayList<TaskStatus>(), 0, 0,
maxMapTasksPerTracker, maxReduceTasksPerTracker));
trackers.put("tt" + id, tt);
}
}