You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Emmanuel <jo...@gmail.com> on 2007/07/24 14:29:20 UTC

Stop MapReduce task

I'm wondering if there is any way to stop a reduce task via the code.

I mean I would like to create a mad/reduce task to select some line from a
file (via a map)and get the first 1000 elements (via a reduce).
When i get the size of 1000 I would like to stop/exit the reduce task to
avoid continuing reducing until the end of the files lines.

is there any way ?