conf.set("chukwaAgent.control.port", "0");
conf.setInt("chukwaAgent.adaptor.context.switch.time", 100);
ChukwaAgent agent = new ChukwaAgent(conf);
File testFile = makeTestFile();
int startOffset = 0; // skip first line
String adaptorId = agent
.processAddCommand("add org.apache.hadoop.chukwa.datacollection.adaptor"+
"filetailer.CharFileTailingAdaptorUTF8 "
+ "lines " + startOffset + " " + testFile + " " + startOffset);
assertTrue(adaptorId != null);
System.out.println("getting a chunk...");