好友推荐
mapper
public class FTopMapper extends Mapper<LongWritable, Text, Text, IntWritable> {
private Text mKey = new Text();
private IntWritable mValue = new IntWritable();
@Override
protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {
// tom hello hadoop cat
String[] strings = StringUtils.split(value.toString(), ' ');
for (String string : strings) {
mKey.set(getFTop(strings[0], string));
mValue.set(0)