1.下载安装JDK1.8
2.下载&解压缩 Hadoop 到指定目录
解压缩安装文件到/usr/local : tar –zxvf hadoop-2.10.0.tar.gz -C /usr/local
检查是否可用:cd /usr/local/hadoop; ./bin/hadoop version
3.Local 运行 Hadoop
3.1 统计词频
$ ./bin/hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.10.0.jar wordcount README.txt output
3.2计算 PI 值
$ ./bin/hadoop jar ./share/hadoop/mapreduce/hadoop-mapreduce-examples-2.10.0.jar pi 2 1000