If you are enabling NameNode High Availability in a multi-node cluster,
you can run the following commands on the primary and standby hosts while services
are starting. Log in to every host and run these commands as administrator.
On the primary host, run
hdfs namenode -format -forceOn each standby host, run
hdfs namenode -bootstrapStandby -force hdfs zkfc -formatZK -force

