Hadoop MapReduce: Two values as key in Mapper-Reducer -


how can build key 2 components? reason have undirected graph. there edge between 2 nodes , b if , b associated through communication (the direction irrelevant). communication has numerical parameter. achieve have key combines , b set, communication b , b can considered equivalent , summed stats

say:

a b 5

b 10

the key should semantically "a or b together", set containing , b key should have value 5+10=15.

the wordcount example has key specific words. in case, want have key set 2 components. during map , reduce phases, sum long b or b satisfies.

thx!

in addition (correct) answer david: if problem has graphs have @ http://incubator.apache.org/giraph/ also.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -