Python – Amazon Elastic MapReduce – Format or example of python map and reduce code

Amazon Elastic MapReduce – Format or example of python map and reduce code… here is a solution to the problem.

Amazon Elastic MapReduce – Format or example of python map and reduce code

Maybe it’s the same as Hadoop, but I can’t find a format or example of writing a map and reducing the python code next to the map example: http://docs.amazonwebservices.com/ElasticMapReduce/latest/GettingStartedGuide/

But I can’t find the reduce code example

Is it the same as Hadoop?
What is the format and are there any examples?

Solution

EMR streams are no different from regular Hadoop streams.

This is an example of a Python reducer
http://www.michael-noll.com/tutorials/writing-an-hadoop-mapreduce-program-in-python/#reduce-reducer-py

Related Problems and Solutions