M(app)er (and) R(educ)er
G4G with comments removed, utf tag added, and converted to Python3.
Works over text files with a Python3 installed and execute permissions.
mapred streaming \
-input ??? \
-output ??? \
-mapper mapper.py \
-reducer reducer.py \
-file mapper.py \
-file reducer.py