/** Copyright(c) 2012 Orzota, Inc. All Rights Reserved. **/
package com.orzota.bookx;

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reporter;

/**
 * @organisaion Orzota, Inc.
 * @author varadmeru
 */
public class BookXMapper extends MapReduceBase implements
		org.apache.hadoop.mapred.Mapper<LongWritable, Text, Text, IntWritable> {
	private final static IntWritable one = new IntWritable(1);

	/* (non-Javadoc)
	 * @see org.apache.hadoop.mapred.Mapper#map(java.lang.Object, java.lang.Object, org.apache.hadoop.mapred.OutputCollector, org.apache.hadoop.mapred.Reporter)
	 */
	@Override
	public void map(LongWritable _key, Text value,
			OutputCollector<Text, IntWritable> output, Reporter reporter)
			throws IOException {

		String TempString = value.toString();
		String[] SingleBookData = TempString.split("\";\"");
		output.collect(new Text(SingleBookData[3]), one);
	}
}

@@ -261,114 +261,20 @@
 pred
-.MapReduceBase;%0Aimport org.apache.hadoop.mapred.OutputCollector;%0Aimport org.apache.hadoop.mapred.Reporter;
+uce.Mapper;%0A
 %0A%0A/*
@@ -329,16 +329,49 @@
 eru%0A */%0A
+ /*%0A Updating for new MR API%0A */%0A
 public c
@@ -399,60 +399,8 @@
 nds 
-MapReduceBase implements%0A%09%09org.apache.hadoop.mapred.
 Mapp
@@ -440,17 +440,17 @@
 ritable%3E
- 
+%0A
 %7B%0A%09priva
@@ -507,16 +507,20 @@
 1);%0A%0A%09/*
+%0A%09 *
  (non-Ja
@@ -526,16 +526,21 @@
 avadoc)%0A
+%09 * %0A
 %09 * @see
@@ -593,16 +593,20 @@
 .Object,
+%0A%09 *
  java.la
@@ -657,16 +657,20 @@
 llector,
+%0A%09 *
  org.apa
@@ -768,92 +768,70 @@
 %0A%09%09%09
-OutputCollector%3CText, IntWritable%3E output, Reporter reporter)%0A%09%09%09throws IOException 
+Context context)%0A%09%09%09throws IOException, InterruptedException%0A%09
 %7B%0A%0A%09
@@ -930,22 +930,21 @@
 ;%0A%09%09
-output.collect
+context.write
 (new

Update BookXMapper.java