Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Data Essentials - Week 3 (Course 1) #2

Open
saint1729 opened this issue Feb 3, 2019 · 0 comments
Open

Big Data Essentials - Week 3 (Course 1) #2

saint1729 opened this issue Feb 3, 2019 · 0 comments

Comments

@saint1729
Copy link

Hi,

In file "https://github.com/maxis42/Big-Data-Engineering-Coursera-Yandex/blob/master/1%20Big%20data%20essentials/Homeworks/Week%203/1%20Words%20Rating.ipynb"

In "mapper_rating.py", why did you print as

'print "%d\t%s" % (count, word)'?

Is it necessary that the element to be sorted to be present at the beginning.

I tried it the following way,

'print "%s\t%d" % (word, count)'

and changed the "line 6" from "reducer_rating.py" to

"word, count = line.strip().split('\t', 1)"

and changed the yarn command option to,

'-D mapreduce.partition.keycomparator.options=-k2,2nr'

It it not showing the right answer. Can you please tell me what is wrong in the options I set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant