Professional Documents
Culture Documents
AIM – Write a pig script to find the number of products sold in each country. Also demonstrate the
use of LOAD, CROSS, DISTINCT, FILTER, FOREACH operators.
COMMANDS –
pig –x mapreduce
4) For each tuple in GroupByCountry, generate the resulting string in the form -> Name of
country: No of products sole
6) LOAD OPERATOR
pload.txt
TYIT DATE – 09/04/2021
BIG DATA AND NEXT GENERATION UID – 18BIT043
PRACTICAL NO 5
7) CROSS OPERATOR
pcross1.txt
TYIT DATE – 09/04/2021
BIG DATA AND NEXT GENERATION UID – 18BIT043
PRACTICAL NO 5
pcross2.txt
OUTPUT –
TYIT DATE – 09/04/2021
BIG DATA AND NEXT GENERATION UID – 18BIT043
PRACTICAL NO 5
8) DISTINCT OPERATOR
OUTPUT –
9) FILTER OPERATOR
OUTPUT –
OUTPUT –