}
FlumeConfiguration conf = FlumeConfiguration.get();
conf.clear(); // reset all back to defaults.
conf.set(FlumeConfiguration.AGENT_LOG_DIR_NEW, tmpdir.getAbsolutePath());
mock = new MockMasterRPC();
node = new FlumeNode(mock, false /* starthttp */, false /* oneshot */);
ReportManager.get().clear();
}