javascript - How do I print intermediate data in hadoop map reduce programming framework -


suppose have file contains test::

hi how  how  job  how family hadoop hi   

desired output of mapperclass:

hadoop[1]  hi[1,1]  how[1,1,1]  is[1,1,1]  your[1,1] 

something every distinct string....

input file:: dravid banglore sachin mumbai dhoni ranchi dravid jaipur dhoni chennai sehwag delhi gambhir delhi gambhir calcutta reducer output:: dravid banglore,jaipur dhoni ranchi,chennai gambhir delhi,calcutta sachin mumbai sehwag delhi

this can achieved using map reduce program.

mapper class : player name key , place name value.

reducer class: when iterate through key(player name) values associated it(place names). can construct string having key(player name) , comma separated values(place names) , output reducer.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -