You may need to delete ZK Failover Controllers.
To check if you need to delete ZK Failover Controllers, on the Ambari Server host:
curl -u ${AMBARI_USER}:${AMBARI_PW} -i ${AMBARI_PROTO}://localhost:${AMBARI_PORT}/api/v1/clusters/${CLUSTER_NAME}/host_components?HostRoles/component_name=ZKFCIf this returns an empty
itemsarray, you can go on to Modify HDFS Configuration. Otherwise you must use the DELETE commands below.To delete all ZK Failover Controllers, on the Ambari Server host:
curl -u ${AMBARI_USER}:${AMBARI_PW} -i -X DELETE ${AMBARI_PROTO}://localhost:${AMBARI_PORT}/api/v1/clusters/${CLUSTER_NAME}/hosts/${NAMENODE_HOSTNAME}/host_components/ZKFC curl -u ${AMBARI_USER}:${AMBARI_PW} -i -X DELETE ${AMBARI_PROTO}://localhost:${AMBARI_PORT}/api/v1/clusters/${CLUSTER_NAME}/hosts/${ADDITIONAL_NAMENODE_HOSTNAME}/host_components/ZKFCVerify that the ZK Failover Controllers have been deleted. On the Ambari Server host:
curl -u ${AMBARI_USER}:${AMBARI_PW} -i ${AMBARI_PROTO}://localhost:${AMBARI_PORT}/api/v1/clusters/${CLUSTER_NAME}/host_components?HostRoles/component_name=ZKFCThis command should return an empty
itemsarray.

