MapOperations master = appconf.getMandatoryComponent(HBaseKeys.ROLE_MASTER); MapOperations worker = appconf.getMandatoryComponent(HBaseKeys.ROLE_WORKER);
MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES);
MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES);
MapOperations component = resources.getMandatoryComponent(name); MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES); MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES);
MapOperations component = resources.getMandatoryComponent(name); MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES); MapOperations componentConfig = resources.getMandatoryComponent(name); int count = componentConfig.getMandatoryOptionInt(ResourceKeys.COMPONENT_INSTANCES);
/** * Extract any JVM options from the cluster specification and * add them to the command line */ public void addJVMOptions(AggregateConf aggregateConf, JavaCommandLineBuilder cmdLine) throws BadConfigException { MapOperations sliderAM = aggregateConf.getAppConfOperations().getMandatoryComponent( SliderKeys.COMPONENT_AM); cmdLine.forceIPv4().headless(); String heap = sliderAM.getOption(RoleKeys.JVM_HEAP, DEFAULT_JVM_HEAP); cmdLine.setJVMHeap(heap); String jvmopts = sliderAM.getOption(RoleKeys.JVM_OPTS, ""); if (SliderUtils.isSet(jvmopts)) { cmdLine.add(jvmopts); } }
/** * Extract any JVM options from the cluster specification and * add them to the command line */ public void addJVMOptions(AggregateConf aggregateConf, JavaCommandLineBuilder cmdLine) throws BadConfigException { MapOperations sliderAM = aggregateConf.getAppConfOperations().getMandatoryComponent( SliderKeys.COMPONENT_AM); cmdLine.forceIPv4().headless(); String heap = sliderAM.getOption(RoleKeys.JVM_HEAP, DEFAULT_JVM_HEAP); cmdLine.setJVMHeap(heap); String jvmopts = sliderAM.getOption(RoleKeys.JVM_OPTS, ""); if (SliderUtils.isSet(jvmopts)) { cmdLine.add(jvmopts); } }