1.1.6. Delete ZK Failover Controllers

You may need to delete ZK Failover Controllers.

  1. 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=ZKFC

    If this returns an empty items array, you can go on to Modify HDFS Configuration. Otherwise you must use the DELETE commands below.

  2. 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/ZKFC
  3. Verify 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=ZKFC

    This command should return an empty items array.


loading table of contents...