From b2b18cbca14f27be9a4f2ec5eb1b6e896fcb80c0 Mon Sep 17 00:00:00 2001 From: Arash Rouhani Date: Tue, 6 Jun 2017 17:18:15 +0200 Subject: [PATCH] pastebin example: fix pseudo code bug This should make it clear that the code the developer writes for the reduce steps indeed gets an iterable of values, not only a single value. --- solutions/system_design/pastebin/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solutions/system_design/pastebin/README.md b/solutions/system_design/pastebin/README.md index 19a3587e..eee29264 100644 --- a/solutions/system_design/pastebin/README.md +++ b/solutions/system_design/pastebin/README.md @@ -218,7 +218,7 @@ class HitCounts(MRJob): period = self.extract_year_month(line) yield (period, url), 1 - def reducer(self, key, value): + def reducer(self, key, values): """Sum values for each key. (2016-01, url0), 2