igrigorik / tokyo-recipes
- Source
- Commits
- Network (5)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
00d8b8b
commit 00d8b8bae0e23b108770d0ccf7473bd51052cd39
tree 066a495170cff16e5f67a8c07335d5c830e7b851
parent 38f57d8ffc3bc7538b842f336ec4ca9baac6fa5e
tree 066a495170cff16e5f67a8c07335d5c830e7b851
parent 38f57d8ffc3bc7538b842f336ec4ca9baac6fa5e
tokyo-recipes / map-reduce
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README.rdoc | Wed Jul 08 22:09:26 -0700 2009 | |
| |
wordcount.lua | Wed Jul 08 22:09:26 -0700 2009 | |
| |
wordcount.rb | Wed Jul 08 22:09:26 -0700 2009 |
map-reduce/README.rdoc
Map-Reduce with Tokyo Cabinet
Executing map-reduce jobs within Tokyo Cabinet
Starting server with incr extension
> ttserver -ext wordcount.lua test.tch
Executing from command line
> tcrmgr put localhost 1 "This is a pen."
> tcrmgr put localhost 2 "Hello world"
> tcrmgr put localhost 2 "Life is good"
> tcrmgr ext localhost wordcount
a 1
good 1
is 2
life 1
pen 1
this 1
Executing via Ruby
> ruby wordcount.rb
a 1
beautiful 1
bob 1
hello 2
what 1
world 2
Source: alpha.mixi.co.jp/blog/?p=566
