版本1
利用自己寫的腳本來啟動,見如下博客
hadoop-2.6.0-cdh5.4.5.tar.gz(CDH)的3節點集群搭建
hadoop-2.6.0.tar.gz的集群搭建(3節點)
hadoop-2.6.0.tar.gz的集群搭建(5節點)
版本2
第一步:見zookeeper啟動
Zookeeper的多節點集群詳細啟動步驟(3或5節點)
如果namenode啟動不起來,就單獨啟動吧。
[hadoop@HadoopMaster hadoop-2.6.0]$ sbin/hadoop-daemons.sh start namenode
第二步:啟動hadoop集群
[hadoop@HadoopMaster hadoop-2.6.0]$ sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
17/03/15 18:22:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [HadoopMaster]
HadoopMaster: starting namenode, logging to /home/hadoop/app/hadoop-2.6.0/logs/hadoop-hadoop-namenode-HadoopMaster.out
HadoopSlave2: starting datanode, logging to /home/hadoop/app/hadoop-2.6.0/logs/hadoop-hadoop-datanode-HadoopSlave2.out
HadoopSlave1: starting datanode, logging to /home/hadoop/app/hadoop-2.6.0/logs/hadoop-hadoop-datanode-HadoopSlave1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hadoop/app/hadoop-2.6.0/logs/hadoop-hadoop-secondarynamenode-HadoopMaster.out
17/03/15 18:23:24 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
starting resourcemanager, logging to /home/hadoop/app/hadoop-2.6.0/logs/yarn-hadoop-resourcemanager-HadoopMaster.out
HadoopSlave1: starting nodemanager, logging to /home/hadoop/app/hadoop-2.6.0/logs/yarn-hadoop-nodemanager-HadoopSlave1.out
HadoopSlave2: starting nodemanager, logging to /home/hadoop/app/hadoop-2.6.0/logs/yarn-hadoop-nodemanager-HadoopSlave2.out
[hadoop@HadoopMaster hadoop-2.6.0]$ jps
3133 QuorumPeerMain
3865 ResourceManager
4698 Jps
3703 SecondaryNameNode
2234 namenode
[hadoop@HadoopSlave1 zookeeper-3.4.6]$ jps
3183 DataNode
3280 NodeManager
3590 Jps
3109 QuorumPeerMain
[hadoop@HadoopSlave1 zookeeper-3.4.6]$
[hadoop@HadoopSlave2 zookeeper-3.4.6]$ jps
4604 DataNode
4828 Jps
4531 QuorumPeerMain
4702 NodeManager
[hadoop@HadoopSlave2 zookeeper-3.4.6]$
