Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I found another answer here, but it did not work. Any help would be greatly appreciated. In this assignment, you are going to implement a

I found another answer here, but it did not work. Any help would be greatly appreciated.image text in transcribed

In this assignment, you are going to implement a natural join operation using mrjob. The natural join operation takes on two input files shown as follows. Mary James, 7001234567,22,CS Peter Pan,7009998888,20,Cyber Security Micky Mouse,7001112222,19,CS John Smith, 7004545454,25, Game Development Bob Don, 7005555222,32,Software Design Compiler, A, 7001234567 Compiler, B,7009998888 Algorithm, B, 7009998888 Algorithm, C,7001112222 Big Data, A,7001234567 Game Programming, C,7009998888 Data Structure, A,7009998888 Android Programming, B,7001112222 Big Data, C,7003456123 Big Data, B, 7009998888 Programming Language, B, 7001234567 Programming Language, A, 7001112222 For an example on how the natural join operation works refers to our lecture slides. To test the code, use the following command >>python MRNaturalJoin.py names.txt grades.txt > output.txt The expected results should look like the following: "7001112222" [["Micky Mouse", "19", "CS"), ["Algorithm", "C"]] "7001112222" [["Micky Mouse", "19", "CS"], ["Android Programming", "B"]] "7001112222" [["Micky Mouse", "19", "CS"], ["Programming Language", "A"]] "7001234567" [["Mary James", "22", "CS"), ["Big Data","A"]] "7001234567" [["Mary James", "22", "CS"], ["Compiler", "A"]] "7001234567" [["Mary James", "22", "CS"), ["Programming Language", "B"]] "7009998888" [["Peter Pan", "20", "Cyber Security"], ["Algorithm", "B"]] "7009998888" [["Peter Pan", "20", "Cyber Security"], ["Big Data", "B"]] "7009998888" [["Peter Pan", "20", "Cyber Security"], ["Compiler", "B"]] "7009998888" [["Peter Pan", "20", "Cyber Security"], ["Data Structure", "A"]] "7009998888" [["Peter Pan", "20", "Cyber Security"],["Game Programming", "C"]]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions