Here are a few reasons why using the reducer as the combiner doesn't work for computing the mean:
1. The reducer expects an iterator of values for a given key. But for the mean, we need to track the sum and count across all values for a key.
2. The reducer is called once per unique key. But to compute the mean, we need to track partial sums and counts across multiple invocations for the same key. There is no way to preserve state between calls to the reducer.
3. The reducer output type needs to match the mapper output type. But for the mean, the mapper emits (key, value) pairs while the reducer would need to emit (key, sum, count