try {
DefaultLogicalNodeManager nodeManager = new DefaultLogicalNodeManager();
Properties props = createProperties(data.name, data.agents, data.properties, data.batchSize,
data.dataDir);
FlumeConfigurationBuilder builder = new FlumeConfigurationBuilder();
NodeConfiguration conf = builder.load(data.name, props, nodeManager);
FlumeNode node = new FlumeNode(nodeManager, conf);
node.start();
LifecycleController.waitForOneOf(node, LifecycleState.START_OR_ERROR);