$ cat input.txt | python mapper.py | sort | python reducer.py This will print the output of reducer in the terminal console. For the file input.txt, after running the above command, we get the output as
This will print the output of reducer in the terminal console. For the file input.txt, after running the above command, we get the output as
0,0,11878 0,1,14044 0,2,16031 0,3,5964 0,4,15874 1,0,4081 1,1,6914 1,2,8282 1,3,7479 1,4,9647 2,0,6844 2,1,9880 2,2,10636 2,3,6973 2,4,8873 3,0,10512 3,1,12037 3,2,10587 3,3,2934 3,4,5274 4,0,11182 4,1,14591 4,2,10954 4,3,1660 4,4,9981