Example usage for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_HA_ENABLED

List of usage examples for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_HA_ENABLED

Introduction

In this page you can find the example usage for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_HA_ENABLED.

Prototype

boolean DEFAULT_RM_HA_ENABLED

To view the source code for org.apache.hadoop.yarn.conf YarnConfiguration DEFAULT_RM_HA_ENABLED.

Click Source Link

Usage

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  w w  w.  j a  v a 2s  .co m
    return getNonHAWebURL();
}