Skip to content

Instantly share code, notes, and snippets.

@phaneesh
Created December 10, 2018 13:13
Show Gist options
  • Save phaneesh/159cefe485679ace38c50fae031e6df0 to your computer and use it in GitHub Desktop.
Save phaneesh/159cefe485679ace38c50fae031e6df0 to your computer and use it in GitHub Desktop.
Restart NameNode HA

Steps to restart NameNode HA with zero downtime

  • Failover to secondary namenode
$ sudo -u hdfs hdfs haadmin -failover nn1 nn2
  • Restart nn1 from Ambari
  • Failover again to secondary namenode
$ sudo -u hdfs hdfs haadmin -failover nn2 nn1
  • Restart nn2 from Ambari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment