- hadoop dfsadmin -report查看HDFS的状态报告。
- source /etc/profile使配置的环境变量生效,CentOS6.5
- 一条本地抽取一部分数据测试mapReduce的命令:
cat The_Man_of_Property.txt | python map.py | sort -k1 | python red.py | sort -k2 -nr | head -20
image.png
cat The_Man_of_Property.txt | python map.py | sort -k1 | python red.py | sort -k2 -nr | head -20