Hadoop Task Side Effect File Example
===

Can I get an example of how to use task side effect files?

public class Map0t extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable >{
	 public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {
	        
		     IntWritable one = new IntWritable(1);
	        StringTokenizer tokenizer = new StringTokenizer(value.toString(), ",");
     
	        String x;
	        String y;
	        String z;
	       	              
	       	x = tokenizer.nextToken();
	       	y = tokenizer.nextToken();
	       	z = tokenizer.nextToken();
	       	           	  
	       	output.collect(new Text(x+" "+z), one);
	       	               
	      }

}


I want to write, new Text(x+" "+y), new Text(z) as a side effect in the above Mapper function to a different folder in hdfs.

I searched but could not find any example of how to use task side effect files.

Pls help me.

Thanks in Advance!
