Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
README
mapreduce_enumerable.rb
mapreduce_runner.rb

README

By Blaine Cook.

http://romeda.org/blog/2007/04/mapreduce-in-36-lines-of-ruby.html

If you want to add `dinject` (reduce) please do:
http://github.com/defunkt/mapreducerb

In your shell:
$ sudo gem install RingyDingy
$ sudo gem install ruby2ruby
$ ring_server &
$ ruby mapreduce_runner.rb &
$ ruby mapreduce_runner.rb &

In IRB:
>> require 'mapreduce_enumerable'
>> (1..100).to_a.dmap { |v| v * 2 }
Something went wrong with that request. Please try again.