Skip to main content
ahallam
Silver ⭐️
Aug 7, 2017 5:02 PM UTC

How to force Namenode failover in HA

  • Oct 5, 2026 9:19 AM UTC
  • 1 reply
  • 2510 views
  • Translate All

If you would like NN1 to be active namenode, you can do it by stopping ZKFC of NN2 via ambari.

After ~10 sec the failover should happend the the other NN become the active

1 reply

abhijth8
Silver ⭐️
Aug 10, 2017 1:18 AM UTC

Doing this process may lead to bad things in a production cluster. The right way would be.

hdfs haadmin -failover nn1 nn2

The NN UI shows the service tags

Translate