code: private YarnService buildYarnService(Config config, String applicationName, String applicationId,
        YarnConfiguration yarnConfiguration, FileSystem fs)
        throws Exception {
      return new YarnService(config, applicationName, applicationId, yarnConfiguration, fs, this.eventBus);
    }
docs: Build the {@link YarnService} for the Application Master.