Find in the dataset how often u2 is mentioned as artist

Assignment Help Python Programming
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

Reference no: EM13890991

Questions Cloud

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

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd