public static boolean isNameNodeHAEnabled(Map<String, Map<String, String>> configurationProperties) {
    return configurationProperties.containsKey("hdfs-site") &&
           (configurationProperties.get("hdfs-site").containsKey("dfs.nameservices") ||
            configurationProperties.get("hdfs-site").containsKey("dfs.internal.nameservices"));
  }
Represents a cluster topology.
Topology includes the the associated blueprint, cluster configuration and hostgroup -> host mapping.
ambari-server/src/main/java/org/apache/ambari/server/topology/ClusterTopologyImpl.java