Zookeeper-client deleteall

Remove the ZNode for HDFS, YARN, Hive, HBase, and Oozie

If the cluster is configured for Namenode HA, the Failover controllers cannot determine the Active Namenode after the migration. This is because the naming conventions used to identify Namenodes for the HA service are different for Ambari and Cloudera Manager. You must format the ZooKeeper ZNode for the Failover controller to continue further.

If the cluster is configured for Yarn HA, the Resource Managers cannot elect an Active Resource Manager after the migration. You must clear the previous Znode from ZooKeeper so that YARN replaces it.

You must format the ZooKeeper Znode for the failover controller to continue further.

  1. Start ZooKeeper client CLI session from a master node. (Assuming that the skipACL is set to Yes to avoid authentication issues). zookeeper-client -server <zk_hostname>
  2. Remove the HDFS HA Failover controller Znode
    deleteall /hadoop-ha
  3. Remove the YARN ZNode
    deleteall /yarn-leader-election
    deleteall /rmstore
  4. Start all role instances of YARN.
  5. Remove the Hive ZNode
    deleteall /hive
    deleteall /hiveserver2
  6. Remove the HBase ZNode
    deleteall /hbase-secure
  7. Remove the Oozie ZNode
    deleteall /oozie