准备工作
配置好一个master,两个slave:slave1,slave2,启动hadoop
master结点
[root@master ~]# start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [master]
master: starting namenode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-namenode-master.out
slave2: starting datanode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-datanode-slave2.out
slave1: starting datanode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-datanode-slave1.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/hadoop/hadoop-2.7.3/logs/hadoop-root-secondarynamenode-master.out
starting yarn daemons
starting resourcemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-resourcemanager-master.out
slave1: starting nodemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-nodemanager-slave1.out
slave2: starting nodemanager, logging to /home/hadoop/hadoop-2.7.3/logs/yarn-root-nodemanager-slave2.out
[root@master ~]# jps
5334 NameNode
5530 SecondaryNameNode
5690 ResourceManager
5981 Jps
slave1结点
[root@slave1 ~]# jps
5265 NodeManager
5155 DataNode
5459 Jps
slave2结点
[root@slave2 ~]# jps
5271 NodeManager
5160 DataNode
5497 Jps
启动hbase
master结点
[root@master ~]# start-hbase.sh
slave2: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-slave2.out
slave1: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-slave1.out
master: starting zookeeper, logging to /home/hadoop/hbase-1.2.6/bin/../logs/hbase-root-zookeeper-master