2 # http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/
6 # input comes from STDIN (standard input)
8 # remove leading and trailing whitespace
10 # split the line into words
14 # write the results to STDOUT (standard output);
15 # what we output here will be the input for the
16 # Reduce step, i.e. the input for reducer.py
18 # tab-delimited; the trivial word count is 1
19 print '%s\t%s' %
(word
, 1)