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

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

Introduction

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

Prototype

String RM_WEBAPP_ADDRESS

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

Click Source Link

Document

The address of the RM web application.

Usage

From source file:org.apache.tez.history.ATSImportTool_V2.java

License:Apache License

static String getYarnRMWebAppUrl(Configuration conf) {
    String webAppAddress = "";
    boolean isHttps = hasHttpsPolicy(conf);
    if (isHttps) {
        webAppAddress = HTTPS_SCHEME + conf.get(YarnConfiguration.RM_WEBAPP_HTTPS_ADDRESS,
                YarnConfiguration.DEFAULT_RM_WEBAPP_ADDRESS);
    } else {/*  w  ww  .  j av  a2s. c o m*/
        webAppAddress = HTTP_SCHEME + conf.get(YarnConfiguration.RM_WEBAPP_ADDRESS,
                YarnConfiguration.DEFAULT_RM_WEBAPP_HTTPS_ADDRESS);
    }
    return Joiner.on("").join(webAppAddress, YARN_RM_STATUS_QUERY);
}