Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 05-27-2016 02:44 AM
Hi All ,
I am familiar with Cloudera manager there is an option in it to fail over the Name node manually.
Could some body tell me how can do it in Ambari.
Thanks in Advance
Abdul
Created 05-27-2016 03:02 AM
Go to edge node, sudo to hdfs user
Get a valid kerberos ticket
Run this below command
hdfs haadmin -failover [--forceactive] <serviceId> <serviceId>]
Example:
hdfs haadmin -failover -forceactive namenode1(active) namenode1(standby)
If you want to do it from Ambari just restart active namenode, during this process it will make standby as active and after restarted namenode came up it will move to standby but this is not recommended best practice
Created 05-27-2016 03:02 AM
Go to edge node, sudo to hdfs user
Get a valid kerberos ticket
Run this below command
hdfs haadmin -failover [--forceactive] <serviceId> <serviceId>]
Example:
hdfs haadmin -failover -forceactive namenode1(active) namenode1(standby)
If you want to do it from Ambari just restart active namenode, during this process it will make standby as active and after restarted namenode came up it will move to standby but this is not recommended best practice
Created 05-28-2016 12:58 AM
If the automatic failover is enabled in the cluster, to trigger the failover from Ambari, do not restart the active NameNode but shutdown the zkfc daemon on the active NN machine (note that to restart the NN in a large cluster may take a long time). Restart that zkfc daemon after the failover happens.