List of usage examples for org.apache.hadoop.yarn.conf YarnConfiguration RM_HA_ENABLED
String RM_HA_ENABLED
To view the source code for org.apache.hadoop.yarn.conf YarnConfiguration RM_HA_ENABLED.
Click Source Link
From source file:co.cask.cdap.operations.yarn.YarnInfo.java
License:Apache License
private URL getResourceManager() throws IOException { if (conf.getBoolean(YarnConfiguration.RM_HA_ENABLED, YarnConfiguration.DEFAULT_RM_HA_ENABLED)) { return getHAWebURL(); }/*from www .ja va2s.c om*/ return getNonHAWebURL(); }
From source file:io.hops.metadata.util.DistributedRTRMEvaluation.java
License:Apache License
public DistributedRTRMEvaluation() throws IOException { conf = new YarnConfiguration(); conf.setBoolean(YarnConfiguration.RM_HA_ENABLED, true); conf.setBoolean(YarnConfiguration.HOPS_DISTRIBUTED_RT_ENABLED, true); conf.setClass(YarnConfiguration.RM_SCHEDULER, FifoScheduler.class, ResourceScheduler.class); YarnAPIStorageFactory.setConfiguration(conf); RMStorageFactory.setConfiguration(conf); }
From source file:org.apache.slider.client.SliderClient.java
License:Apache License
/** * Verify that the Resource Manager is configured (on a non-HA cluster). * with a useful error message//w w w . j a v a2s . c om * @throws BadCommandArgumentsException the exception raised on an invalid config */ public void verifyBindingsDefined() throws BadCommandArgumentsException { InetSocketAddress rmAddr = SliderUtils.getRmAddress(getConfig()); if (!getConfig().getBoolean(YarnConfiguration.RM_HA_ENABLED, false) && !SliderUtils.isAddressDefined(rmAddr)) { throw new BadCommandArgumentsException("No valid Resource Manager address provided in the argument " + Arguments.ARG_MANAGER + " or the configuration property " + YarnConfiguration.RM_ADDRESS + " value :" + rmAddr); } }