Êý¾ÝÅÅÐò
file1:
43
32
5
6
file2:
98
1234
356
2
output:
1 2
2 5
3 6
4 32
5 43
6 98
7 356
8 1234
public class Sort {
public static class Map extends Mapper<Object, Text, IntWritable, IntWritable>{
private static IntWritable data = new IntWritable();
public void map(Object key, Text value, Context context) throws IOException, InterruptedException {
String line = value.toString();
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余3页未读,立即下载