Fix: HDFS NameNode Starting as Active Instead of Standby in HA Cluster
Hi everyone,
My system have 2 datanode, 2 namenode, 3 journalnode, 3 zookeeper service
I had config cluster namenode ok , when browsing the admin page namenode:50070 , I had see 1 name node status (active) and one namenode status (standby). => OK
When I stop active namenode the other with standby become active . => OK
But the problem is how start the namenode which I had stop again ?
I do the following :
sudo -u hdfs hdfs namenode -bootstrapStandby -force
/etc/init.d/hadoop-hdfs-namenode start
With above process sometime namenode start ok with standby mode , but sometime it start with active mode and then I have 2 active node (split brain !!)
So what I have wrong , what is the right process to start a namenode had stop again
Thanks you

