1.1.1 集群规划
节点名 | Ip地址 | 安装路径 | 主端口 | 监控端口 |
NameNode | 192.168.74.103 | /opt/hdfs/Hadoop-1.1.2 | 9000 | 50070 |
DataNode | 192.168.74.104 | /opt/hdfs/hadoop-1.1.2 | 50010 | 50075 |
JobTracker | 192.168.74.103 | /opt/mapreduce/hadoop-1.1.2 | 9001 | 50030 |
TaskTracker | 192.168.74.104 | /opt/mapreduce/hadoop-1.1.2 | 38838 | 50060 |
HbaseMaster | 192.168.74.103 | /opt/hbase-0.94.7 | 6000 | 60010 |
ZooKeeper | 192.168.74.103 | /opt/hbase-0.94.7(集成) | 2181 | 无 |
HbaseRegionServer | 192.168.74.104 | /opt/hbase-0.94.7 | 60020 | 60030 |
1.1.2 NameNode配置
1. conf/core-site.xml
2. conf/hdfs-site.xml
3. conf/masters
设置为空
4. conf/slaves
去除localhost,添加192.168.74.104
1.1.3 DataNode配置
1. conf/core.site.xml
2. conf/hdfs-site.xml
3. conf/masters
设置为空
4. conf/slaves
设置为空
1.1.4 JobTracker配置
1. conf/core.site.xml
2. conf/mapred-site.xml
3. conf/masters
设置为空
4. conf/slaves
去除localhost,添加192.168.74.104
1.1.5 TaskTracker配置
1. conf/core.site.xml
2. conf/mapred-site.xml
3. conf/masters
设置为空
4. conf/slaves
设置为空
1.1.6 HBaseMaster
1. conf/hbase-site.xml
2. conf/regionservers
去除localhost,添加regionservers的运行地址192.168.74.104
3. conf/hbase-env.sh
如果启动时找不到jdk home则设置jdk home
1.1.7 HBase RegionServer
1. conf/hbase-site.xml
2. conf/regionservers
设置为空
3. conf/hbase-env.sh
如果启动时找不到jdk home则设置jdk home
1.1.8 启动
1. 启动dfs
2. 启动mapreduce
3. 启动hbase