Hi,

LocalJobRunner uses just 0 or 1 reduce. This is because running in local mode is only supported for testing purposes. Although you can simulate distribute mode in local, by using MiniMRCluster and MiniDFSCluster under src/test.

Best wishes
Enis

Naama Kraus wrote:
Hi,

I ran a simple MapReduce job which defines 3 reducers:

*conf.setNumReduceTasks(3);*

When running on top of HDFS (distributed mode), I got 3 out files as I
expected.
When running on top of a local files system (local mode), I got 1 file and
not 3.

My question is whether the behavior in the local is the expected one, is a
bug, or maybe something needs to be configured in the local mode in order to
get the 3 files as well ?

Thanks for an insight, Naama

Reply via email to