牛肉姐MR题目还用想么?太tmd简单了。 就用default的inputsplit,输入kv是 offset of this line in a whole file : line content map()做:line content reverse 输出kv是 -offset of this line in a whole file: reversed line content reduce()直接输出value就是了,因为已经sort了。
【在 a*****s 的大作中提到】 : 牛肉姐MR题目还用想么?太tmd简单了。 : 就用default的inputsplit,输入kv是 : offset of this line in a whole file : line content : map()做:line content reverse : 输出kv是 : -offset of this line in a whole file: reversed line content : reduce()直接输出value就是了,因为已经sort了。