ConfigStore cfgStore2 = FlumeMaster.createConfigStore(cfg);
FlumeMaster fm2 = new FlumeMaster(new CommandManager(), new ConfigManager(
cfgStore2), new StatusManager(), new MasterAckManager(), cfg);
assertEquals(0, fm2.getKnownNodes().size());
fm2.serve();
LOG.info("flume master 2 open ");
while (fm2.getKnownNodes().size() == 0) {
Clock.sleep(1000);
}
fm2.shutdown();