Question: Homework Requirements: Please download the dataset named data.csv from the link above. In this dataset, each line is a pair of strings separated with

Homework Requirements:
Please download the dataset named "data.csv" from the link above. In this dataset, each line is a pair of strings separated with comma. Formally, each line can be represented as (c1,c2).
Problem Details:
Given the pairs in the "data.csv" dataset, please write a MapReduce program according to the following requirements.
Map phase:
Order the pair of strings alphabetically.
For example, given a pair (c1,c2),
if c1c2, then the ordered pair is still (c1,c2);
if (c2,c1)c2, then the ordered pair is(c2,c1);
Reduce phase:
Output all ordered pairs in the dataset as well as the count of each ordered pair.
In addition, please use counter to compute the total number of unique ordered pairs.
 Homework Requirements: Please download the dataset named "data.csv" from the link

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!