赞
踩
概述
示例说明
评估圆周率π(PI)的值
[root@node1 mapreduce]# pwd
/export/server/hadoop-3.3.0/share/hadoop/mapreduce
[root@node1 mapreduce]# hadoop jar hadoop-mapreduce-examples-3.3.0.jar pi 10 50
Wordcount单词词频统计(指的是统计指定文件中,每个单词出现的总次数。)
[root@node1 mapreduce]# pwd
/export/server/hadoop-3.3.0/share/hadoop/mapreduce
[root@node1 mapreduce]# hadoop jar hadoop-mapreduce-examples-3.3.0.jar wordcount /input /output
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。