Difference between revisions of "CSC352 Game of Life in Map-Reduce"
Line 263: | Line 263: | ||
print( "%d\t%d" % ( int( lastCell )/1000, int( lastCell )%1000 ) ) | print( "%d\t%d" % ( int( lastCell )/1000, int( lastCell )%1000 ) ) | ||
</source> | </source> | ||
+ | <br /> | ||
+ | ==Output of Reducer== | ||
+ | <br /> | ||
+ | |||
+ | '''cat life0.txt | ./mapper.py | ./shuffleSort.py | ./reducer.py ''' | ||
+ | 2 4 | ||
+ | 2 5 | ||
+ | 2 6 | ||
+ | |||
+ | |||
</onlydft> | </onlydft> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | <br /> | ||
+ | [[Category:CSC352]][[Category:MapReduce]][[Category:Hadoop]][[Category:Python]] |