conf.set("chukwaAgent.checkpoint.interval", "10000");
int portno = conf.getInt("chukwaAgent.control.port", agentPort);
agent = new ChukwaAgent(conf);
conn = new HttpConnector(agent, "http://localhost:"+collectorPort+"/chukwa");
conn.start();
sender = new ChukwaHttpSender(conf);
ArrayList<String> collectorList = new ArrayList<String>();
collectorList.add("http://localhost:"+collectorPort+"/chukwa");
sender.setCollectors(new RetryListOfCollectors(collectorList, conf));
} catch (AlreadyRunningException e) {
fail("Chukwa Agent is already running");