- 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