Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .mapper.py.swp
Binary file not shown.
Binary file added .output.txt.crc
Binary file not shown.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# mapreduceexercise
# mapreduceexercise
# mapreduceexercise
2 changes: 1 addition & 1 deletion mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
# Key is the payment, value is the sales
# With a tab (\t) between key and value
# New line \n means new record
sys.stdout.write("{0}\t{1}\n".format(payment, sales))
sys.stdout.write("{0}\t{1}\n".format(category, sales))
5 changes: 5 additions & 0 deletions output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Amex 93479.83
Visa 105558.2
Discover 97172.73
MasterCard 94885.53
Cash 100726.37
5 changes: 5 additions & 0 deletions result.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Amex 93479.83
Cash 100726.37
Discover 97172.73
MasterCard 94885.53
Visa 105558.2
18 changes: 18 additions & 0 deletions result1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Baby 23173.67
Books 27262.16
Cameras 27228.21
CDs 23380.68
Children's Clothing 28507.82
Computers 28330.62
Consumer Electronics 27399.24
Crafts 28115.25
DVDs 29300.75
Garden 28384.5
Health and Beauty 23024.9
Men's Clothing 29814.55
Music 31449.59
Pet Supplies 27359.5
Sporting Goods 27723.72
Toys 27382.74
Video Games 29817.37
Women's Clothing 24167.39