MapReduce实验——英语单词个数统计实验
英语单词频次统计
Map类
package WordSum_02;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
public class MyMap extends Mapper
@Override
protected void map(LongWritable key,Text value,Context context) throws IOException,
共有 0 条评论