Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
cc480586
Commit
cc480586
authored
Jun 14, 2017
by
Arash Rouhani
Committed by
Donne Martin
Jun 13, 2017
Browse files
Fix reducer argument in pastebin exercise (#85)
parent
17e5fb7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
solutions/system_design/pastebin/README.md
View file @
cc480586
...
@@ -218,7 +218,7 @@ class HitCounts(MRJob):
...
@@ -218,7 +218,7 @@ class HitCounts(MRJob):
period = self.extract_year_month(line)
period = self.extract_year_month(line)
yield (period, url), 1
yield (period, url), 1
def reducer(self, key, value):
def reducer(self, key, value
s
):
"""Sum values for each key.
"""Sum values for each key.
(2016-01, url0), 2
(2016-01, url0), 2
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment