TFIDF code
TFIDF is 3 pair of map-reduce program TF&DF can be achieved from simple map-reduce tasks, here posted the third map reduce task to find out the TFIDF final deliverables. Custom Key public class Key implements WritableComparable<Key>{ Text word; IntWritable type; public Key() { word = new Text(); type = new IntWritable(); } public Text getWord() { return word; } public void setWord(Text word) { this.word = word; } public IntWritable getType() { return type; } public void setType(IntWritable type) { this.type = type; } @Override public void readFields(DataInput arg0) throws IOException { // TODO Auto-generated method stub this.word.readFields(arg0); this.type.readFields(arg0); } @Override public void write(DataOutput arg0) throws IOException { // TODO Auto-generated method stub this.word.write(arg0); this.type.write(arg0); } @...