cs.start(conf);
assertEquals("JT name mismatch", jt, cs.getJobTrackerInfo());
assertEquals("NN name mismatch", nn, cs.getNamenodeInfo());
ClusterStats cstats = ClusterStats.getClusterStats();
conf.set("mapred.job.tracker", "local");
conf.set(CommonConfigurationKeys.FS_DEFAULT_NAME_KEY, "local");
JobClient jc = new JobClient(new JobConf(conf));
cstats.setClusterMetric(jc.getClusterStatus());
cs.update(cstats);
// test
assertEquals("Cluster summary test failed!", 1, cs.getMaxMapTasks());