import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; public class URLCountM extends Mapper { public final IntWritable iw = new IntWritable(); public void map(Text key,Text value,Context context){ try{ context.write(key, new IntWritable(Integer.valueOf(value.toString()))); } catch(Exception e){ e.printStackTrace(); } } }