yarnRegistryOperations = new YarnRegistryViewForProviders( registryOperations, service_user_name,
yarnRegistryOperations = new YarnRegistryViewForProviders( registryOperations, service_user_name,
protected YarnRegistryViewForProviders createYarnRegistryViewForProviders( Configuration conf) throws IOException { conf.set(RegistryConstants.KEY_REGISTRY_ZK_ROOT, RegistryConstants.DEFAULT_ZK_REGISTRY_ROOT); RegistryOperations registryOperations = new MockRegistryOperations(); registryOperations.init(conf); YarnRegistryViewForProviders registryViewForProviders = new YarnRegistryViewForProviders(registryOperations, "hbase", SliderKeys.APP_TYPE, "hbase1", new MockApplicationAttemptId(new MockApplicationId(1), 1)); registryViewForProviders.registerSelf(new ServiceRecord(), true); return registryViewForProviders; }
protected YarnRegistryViewForProviders createYarnRegistryViewForProviders( Configuration conf) throws IOException { conf.set(RegistryConstants.KEY_REGISTRY_ZK_ROOT, RegistryConstants.DEFAULT_ZK_REGISTRY_ROOT); RegistryOperations registryOperations = new MockRegistryOperations(); registryOperations.init(conf); YarnRegistryViewForProviders registryViewForProviders = new YarnRegistryViewForProviders(registryOperations, "hbase", SliderKeys.APP_TYPE, "hbase1", new MockApplicationAttemptId(new MockApplicationId(1), 1)); registryViewForProviders.registerSelf(new ServiceRecord(), true); return registryViewForProviders; }