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);
queryTaskContext.getDispatcher().register(ContainerAllocatorEventType.class, rmAllocator);
super.init(conf);
}