@Test
public void test() throws AnalysisException, InterruptedException
{
//build MasterNode
MasterNode masterNode = new MasterNode();
MemMasterConnector masterConnector = new MemMasterConnector();
JobManager jobManager = new JobManager();
JobResultMerger jobResultMerger = new JobResultMerger();
MixJobBuilder mixJobBuilder = new MixJobBuilder();
FileJobExporter fileJobExporter = new FileJobExporter();
MemTunnel tunnel = new MemTunnel();
jobManager.setJobBuilder(mixJobBuilder);
jobManager.setJobExporter(fileJobExporter);
jobManager.setJobResultMerger(jobResultMerger);
masterConnector.setTunnel(tunnel);
masterNode.setJobManager(jobManager);
masterNode.setMasterConnector(masterConnector);
MasterConfig config = new MasterConfig();
config.load("master-config-ms.properties");