My idea is to write two map, a map on the line, one for each word on the map, reduce, respectively, but that there will be two output files, and efficiency seems to be very low, can only write a map, and then multiple calls the same logic to achieve? Can you give a slightly more specific solutions
CodePudding user response:
Here is a SPARK area