yarnRPC = YarnRPC.create(systemConf);
connectYarnClient();
taskRunnerLauncher = new YarnTaskRunnerLauncherImpl(queryTaskContext, yarnRPC);
addService((org.apache.hadoop.yarn.service.Service) taskRunnerLauncher);
queryTaskContext.getDispatcher().register(TaskRunnerGroupEvent.EventType.class, taskRunnerLauncher);
rmAllocator = new YarnRMContainerAllocator(queryTaskContext);
addService(rmAllocator);