Hadoop2.1全分布式集群安装
1. 环境
5个节点,配置如下:
dual core x86_64, 4GB RAM, 10GB Disk
Centos 6.4_x64
OpenJDK 1.7.0_9
hadoop-2.1.0-beta
互相之间千兆网连接。
每台机器上用于安装和启动hadoop的用户名都是xc
节点的hostname、安装的服务和ip如下:
hostname安装服务iph1-1NN172.16.0.198h1-2RM + SNN172.16.0.199h1-3NM + DN172.16.0.200h1-4NM + DN172.16.0.201h1-5NM + DN172.16.0.202
$ cd hadoop_home_dir$ ./bin/hdfs dfs -put <src> <dst>$ ./bin/hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.1.0-beta.jar wordcount参考资料http://www.ibm.com/developerworks/cn/opensource/os-cn-hadoop-yarn/