Reduce() method

The following are characteristics of the Reduce function, including examples of the input and output and the action the reduce method performs.
  • Input: Boolean indicating whether points lie inside or outside of the inscribed circle of the square and the number of such points.
  • Output: Either (true, number of points inside of the inscribed circle of the square) or (false, number of points outside of the inscribed circle of the square).
  • Action: Sums up all counts within each category.
The following is sample output:
12/04/16 08:12:17 INFO mapreduce.JobRunner: Validating args
12/04/16 08:12:17 INFO mapreduce.JobRunner: Validating job
12/04/16 08:12:17 INFO mapreduce.JobRunner: Deploying job
12/04/16 08:12:17 INFO mapreduce.JobRunner:
/nz/export/ae/products/netezza/mapreduce/current/jobs/job_QuasiMonteCarlo
_20120416_081217
12/04/16 08:12:18 INFO mapreduce.JobRunner: Running job
12/04/16 08:12:18 INFO mapreduce.JobRunner: Generating MapReduce
query
12/04/16 08:12:18 INFO mapreduce.JobRunner: Running MapReduce query
12/04/16 08:12:20 INFO mapreduce.JobRunner: Job complete: SUCCESS
12/04/16 08:12:20 INFO mapreduce.JobRunner: Aggregating counters
12/04/16 08:12:20 INFO mapreduce.JobRunner: Counters: 8
JOB_COUNTERS
Launched map tasks=2
Launched reduce tasks=2
MAPPER_COUNTERS
Map input bad records=0
Map input records=5
Map output records=10
REDUCER_COUNTERS
Reduce input groups=2
Reduce input records=10
Reduce output records=2
12/04/16 08:12:20 INFO mapreduce.JobRunner: Cleaning up run.dir
(archives, files, libjars)
Estimated value of Pi is 3.28000000000000000000