private String getRmUrlFromCustomConfig() {
    // Comma separated list of URLs for HA and single URL for non HA
    String resourceManagerUrls = context.getProperties().get("yarn.resourcemanager.url");
    if (!StringUtils.isEmpty(resourceManagerUrls)) {
      String[] urls = resourceManagerUrls.split(",");

      if (!hasProtocol(urls)) {
        throw new AmbariApiException(
          "RA070 View is not cluster associated. All Resource Manager URL should contain protocol.");
      }
      return getActiveRMUrl(urls);
    } else {
      throw new AmbariApiException(
        "RA070 View is not cluster associated. 'YARN ResourceManager URL' should be provided");
    }
  }
Returns URL to Resource Manager.
If cluster associated, returns HTTP or HTTPS address based on "yarn.http.policy" property value.
If not associated, retrieves RM URL from view instance properties by "yarn.resourcemanager.url" property.
@return url of RM
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/ambari/Services.java