Having difficulty in mapreduce to understand

Posted by mahesh on Stack Overflow See other posts from Stack Overflow or by mahesh
Published on 2011-02-25T07:18:01Z Indexed on 2011/02/25 7:24 UTC
Read the original article Hit count: 351

Hi all,

I have seen the below link which is of getting started mapreduce with python

http://code.google.com/p/appengine-mapreduce/wiki/GettingStartedInPython

But still I am not able to understand how its working. I am executing below code but not able to understand what exactly is happening?

mapreduce.yaml

mapreduce:
- name: Testmapper
  mapper:
    input_reader: mapreduce.input_readers.DatastoreInputReader
    handler: main.process
    params:
    - name: entity_kind
      default: main.userDetail

mapreduce/main.py

#some code
class userDetail(db.Model):
    name = db.StringProperty()

#some code
def process(u): 
    u.name="mahesh"
    yield op.db.Put(u)

I am executing this and it gives me status = success in status page.

But not able to understand what happend

The main thing I want do with mapreduce is to search or count records from entity

So anyone can please help me??

Thanks in advance

© Stack Overflow or respective owner

Related posts about python

Related posts about google-app-engine