MapReduce中map的输出与ruduce输入的区别

1.map的输出
Map<String, String> map1 = new HashMap<>();
map1.put(“map1_key1”, “map_key11111”);
map1.put(“map1_key2”, “map_key22222”);
map1.put(“map1_key3”, “map_key33333”);
key-value 的list形式
2.ruduce的输入
Array[(String, List[String])] = Array((red,List(zero, two)), (yellow,List(one)))
key,list(value)的形式

发布了56 篇原创文章 · 获赞 561 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/CZXY18ji/article/details/103041884
今日推荐