Hadoop hdfs yarn HA
Master MasterStandBy
Slave1 Slave2 Slave3
Zookeeper安装在Slave1,Slave2,Slave3上
->启动zookeeper
./zkServer.sh start
查看zookeeper状态:./zkServer.sh status, 正确的状态是一个leader,两个follower。
->在三个slave上启动journalnode
sbin/hadoop-daemon.sh start journalnode
->在master上格式化hdfs
hadoop namenode -format
->在master上格式化zkfc
hdfs zkfc -formatZK
->在master启动所有
./start-all.sh
->在MasterStandBy上同步journalnode的共享数据,然后启动namenode进程:
./hdfs namenode -bootstrapStandby
./hadoop-daemon.sh start namenode
配置文件样板:
https://github.com/zhongzai/hadoop-/etcStandBy.rar
帮助链接
http://hadoop.apache.org/docs/r2.8.3/hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html
http://hadoop.apache.org/docs/r2.8.3/hadoop-yarn/hadoop-yarn-site/ResourceManagerHA.html
http://hadoop.apache.org/docs/r2.8.3/hadoop-project-dist/hadoop-common/ClusterSetup.html
http://blog.csdn.net/everl_1/article/details/52303011
http://blog.csdn.net/u014726937/article/details/51154651