Re-create the standby NameNode
You may need to recreate your standby NameNode.
Check whether you need to recreate the standby NameNode, on
the Ambari Server host:
curl -u [AMBARI_USER]:[AMBARI_PW] -H "X-Requested-By:
ambari" -i -X GET
[AMBARI_PROTO]://localhost:[AMBARI_PORT]/api/v1/clusters/[CLUSTER_NAME]/host_components?HostRoles/component_name=SECONDARY_NAMENODE
If this returns an empty items array, you must recreate your standby NameNode. Otherwise you can proceed to re-enable your standby NameNode.