hadoop 计算圆周率

[root@localhost ~]# hadoop jar /opt/module/hadoop-3.1.2/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.1.2.jar pi 4 1000

回车得到

Number of Maps  = 4
Samples per Map = 1000
Wrote input for Map #0
Wrote input for Map #1
Wrote input for Map #2
Wrote input for Map #3
Starting Job
2019-03-14 22:56:45,754 INFO impl.MetricsConfig: loaded properties from hadoop-metrics2.properties

........//此处省略n行

 File Input Format Counters
                Bytes Read=520
        File Output Format Counters
                Bytes Written=109
Job Finished in 3.688 seconds
Estimated value of Pi is 3.14000000000000000000

展开阅读全文

没有更多推荐了,返回首页