I have some map class inside class of job, and I need sometimes break execution of current task (The Hadoop Map-Reduce framework spawns one map task for each InputSplit generated by the InputFormat for the job):
public static class TestJobMapper
extends Mapper<LongWritable, Text, Text, Text> {
@Override
protected void setup(Context context) throws IOException, InterruptedException {
super.setup(context);
// here I want to check some predicate, and may be break execution of task
// http://hadoop.apache.org/docs/r2.3.0/api/org/apache/hadoop/mapreduce/Mapper.html
}
// continue....