2. Enabling NameNode High Availability

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.

  1. On the primary host, run

    hdfs namenode -format -force

  2. On each standby host, run

    hdfs namenode -bootstrapStandby -force hdfs zkfc -formatZK -force


loading table of contents...