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 06-08-2016 12:41 PM
Good day Hortonworks community!
Recently we've went from an extremely old version of Ambari/HDP to the bleeding edge latest edition.
Along the way I just about converted every service that could be made HA into HA.
Now here is an issue I get sometimes regarding to NN and SNN.
Sometimes NN/SNN will both become "Active" or "Standby" namenodes if one or the other crash.
Question: Is there some kind of setting to force them back into static roles when both NameNodes are online instead of having to manually restart the service of another?
Created 06-08-2016 12:51 PM
We don't need to restart any service, you can use below command to force failover.
hdfs haadmin -failover
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#haadmin
Created 06-08-2016 12:51 PM
We don't need to restart any service, you can use below command to force failover.
hdfs haadmin -failover
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HDFSCommands.html#haadmin
Created 06-08-2016 01:54 PM
Technically two NN can't be at same status if its happening then either you have configuration issues or hitting some bug.
Created 06-08-2016 02:06 PM
Most likely the latter.... I haven't been able to figure out what exactly is causing the issue.
Created 06-08-2016 01:35 PM
Very interesting, but it would be nice to have something set them back to Active / Standby automatically once both are online or both have the same status... I have case where both become standby nodes and it breaks access to the hdfs file system.