Reference no: EM13890991
Task:
You are to write and run Hadoop code (mappers and reducers) to find in the Last.fm dataset (a) how often U2 is mentioned as artist and (b) songs that have been played more than 600 million times. Both questions are answered with two different implementations (implantation for (a) builds on the implementation of (b)) so you should submit your anwers with two mappers and two reducers.
Result: You need to submit (a) the code and (b) the result executed on the data provided. The code can be written in Java or in Python.
Assessment: Each student will submit their own solution. You are free to work on this exercise in groups of up to five students if you prefer. You need to indicate on your submission if you solved it as a group (and who else is in the group). The mark will depend on the correctness of the result and to lesser degree on the code.
Data Description
The data is provided by Last.fm and is a file containing tab delimited lines. Each lines tells how often a particular user has been listened to by a particular user of Last.fm. The format is as follows:
user-mboxsha1 \t musicbrainz-artist-id \t artist-name \t plays and an example looks as follows:
000063d3fe1cf2ba248b9e3c3f0334845a27a6be \t a3cb23fc-acd3-4ce0- 8f36-1e5aa6a18432 \t u2 \t 31
The example tells us that user 000063d3fe1cf2ba248b9e3c3f0334845a27a6be (obfuscated for reasons of privacy) listened to the song a3cb23fc-acd3-4ce0- 8f36-1e5aa6a18432 (obfuscated for technical reasons) by u2 31 times.
The goal of your implementation is to find (a) how often U2 is mentioned as artist and (b) the songs (artist name and title of the song), which have been played at least 600 million times.
Hints
1. The structure of the dataset is well defined but be aware that there may always be certain anomalies (missing values etc.)
2. Capitalization of artists names may not be consistent.
3. The song titles are not unique. Different artists may have songs with the same titles.
4. Use the sample dataset to understand the format (and test parsing).
Dataset
The dataset is located in S3 at s3://lastfmdataba/plays and is 30GB in size. You can use hadoop distcp s3n://lastfmdataba/plays /tmp/plays to load the file into HDFS (loads it into the /tmp directory).
Attachment:- sampledata.txt
Process further or sell byproduct
: Process further or sell, byproduct. (CMA, adapted) Rochester Mining Company (RMC) mines coal, puts it through a one-step crushing process, and loads the bulk raw coal onto river barges for shipment to customers. RMC's management is currently evaluati..
|
What components constituted in shearing resistance of soil
: What are the basic components are constituted in shearing resistance of soil
|
Discuss methods used to address any countertransference
: Discuss, while protecting confidentiality, a case example of codependency, dual diagnosis, addiction, or substance abuse you have encountered during your clinical experience or can you hypothesize about how you might handle one.
|
Manufacturing costs and expenses
: Instructions: Classify the following manufacturing costs and expenses by using the following code letters:A. Direct materials cost B. Direct labor cost C. Manufacturing overhead cost D. Period cost
|
Find in the dataset how often u2 is mentioned as artist
: Write and run Hadoop code (mappers and reducers) to find in the Last.fm dataset (a) how often U2 is mentioned as artist and (b) songs that have been played more than 600 million times.
|
Prepare a set of profile leveling notes for the data
: Prepare a set of profile leveling notes for the data listed and show the page check. All the data is given feet. The elevation of BM A is 659.08 and the elevation of BM B is 648.47
|
Recompute its debt ratio for any subsequent
: Refer to Polaris' financial statements in Appendix A for the following questions.
|
How will you consider the clients experiences with endings
: How would you assist the clients to make a transition to a new counselor, or make plans for other services or resources they may need after they end their therapy with you?
|
Estimate the landfill lift in one year
: A landfill area of (150 m x 100 m) is available for handling 25 years' municipal solid waste (MSW) for a town of 5,00,000 people. estimate the landfill lift in one year
|