2. Enabling NameNode High Availability

Optionally, to enable NameNode High Availability in a multi-node cluster, run the following commands on the primary and standby hosts while services are starting.

[Important]Important

Log in to every host and run these commands as an administrator user.

  1. On the primary host, run

    hdfs.cmd namenode -format -force
  2. On each standby host, run

    hdfs.cmd namenode -bootstrapStandby -force
    hdfs.cmd zkfc -formatZK -force

loading table of contents...