不多说,直接上干货!
首先,
那么,你也许,第一感觉,是想到的是
全网最详细的Hadoop HA集群启动后,两个namenode都是standby的解决办法(图文详解)
这里,nn1,不多赘述了。很简单,大家自行去看。
总的是nn,我的bigdata-pro01.kfk.com是nn1,我的bigdata-pro02.kfk.com是nn2。
是因为,在配置文件上,如下:
[kfk@bigdata-pro02 hadoop-2.6.0]$ bin/hdfs haadmin -transitionToActive nn1 Automatic failover is enabled for NameNode at bigdata-pro02.kfk.com/192.168.80.152:8020 Refusing to manually manage HA state, since it may cause a split-brain scenario or other incorrect state. If you are very sure you know what you are doing, please specify the forcemanual flag. [kfk@bigdata-pro02 hadoop-2.6.0]$