private void addHostsToTopology(HostGroupInfo hostGroupInfo) throws InvalidTopologyException, NoSuchHostGroupException {
    for (String host: hostGroupInfo.getHostNames()) {
      registerRackInfo(hostGroupInfo, host);
      addHostToTopology(hostGroupInfo.getHostGroupName(), host);
    }
  }
Static convenience function to determine if Yarn ResourceManager HA is enabled
@param configProperties configuration properties for this cluster
@return true if Yarn ResourceManager HA is enabled
        false if Yarn ResourceManager HA is not enabled
ambari-server/src/main/java/org/apache/ambari/server/topology/ClusterTopologyImpl.java