## What changes were proposed in this pull request? Prior to [AMBARI-24453](https://issues.apache.org/jira/browse/AMBARI-24453) saving `hadoop-env.sh` and related logic was executed if the cluster had any NameNodes. This change adds back the `has_namenode` condition to consider the cluster to have HDFS if it has any NameNodes (to preserve old behavior) or any HDFS Clients (to preserve the change from AMBARI-24453).
This fixes [AMBARI-24681](https://issues.apache.org/jira/browse/AMBARI-24681). ## How was this patch tested? Tested the following scenarios: * deploy cluster without `HDFS_CLIENT` via blueprint * add new host to host group without `HDFS_CLIENT` * add new host to host group with `HDFS_CLIENT` [ Full content available at: https://github.com/apache/ambari/pull/2370 ] This message was relayed via gitbox.apache.org for [email protected]
