try {
Configuration collectorConf = new Configuration(false);
collectorConf.addResource(new Path(conf.getChukwaConf() + "/chukwa-common.xml"));
collectorConf.addResource(new Path(conf.getChukwaConf() + "/chukwa-collector-conf.xml"));
Checker.checkConf(new OptDictionary(new File(new File(conf.getChukwaHome(), "share/chukwa/lib"), "collector.dict")),
HSlurper.fromHConf(collectorConf));
} catch(Exception e) {e.printStackTrace();}
int portNum = conf.getInt("chukwaCollector.http.port", 9999);
THREADS = conf.getInt("chukwaCollector.http.threads", THREADS);