jseidman/hadoop-R — pull request #2 by jeffreybreen (2012-02-29 03:43:09+00:00)
Title: added example for rmr 1.2

Hi Jonathan:

rmr 1.2 broke your example, so I created a version which works.

I honestly don't know the best way to handle this situation, so I took this easy way out.

My first attempt was to refactor your example, pulling out the mapper and reducer (which didn't need to change), but the resulting if...then code block to construct the csv reader and call mapreduce() was pretty ugly.

Anyway -- I hope you (or someone) finds this helpful.

Jeffrey