Hadoop集群搭建可以参考hadoop的官网指导:[http://hadoop.apache.org/](http://hadoop.apache.org/)
1.hadoop的模式
本地单机模式 伪分布式 完全分布式
2.hadoop
上传包到指定目录,tar -zxvf source 解压 -zcvf是压缩tar包
/etc/profile 设置环境变量 path需要bin和sbin两个
source /ect/profile 修改文件生效
3.单节点使用
grep方式 排除
bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.1.jar grep input output 'dfs[a-z.]+'
wordcount方式 单词计数
bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-3.2.1.jar wordcount input output