What is “map”? A function/procedure that is applied to every individual elements of a collection/list/array/…
int square(x) { return x*x;}
map square [1,2,3,4] -> [1,4,9,16]
What is “reduce”? A function/procedure that performs an operation on a list. This operation will “fold/reduce” this list into a single value (or a smaller subset)
reduce ([1,2,3,4]) using sum -> 10
reduce ([1,2,3,4]) using multiply -> 24
Programmers implement:
The MapReduce Framework handles everything else
https://github.com/linhbngo/example-cloudlab
https://www.cloudlab.us/status.php?uuid=78182751-ddf7-11e8-b339-90e2ba22fee4
$ sudo passwd <your_user_name>
$ hdfs dfs -ls .
$ hdfs dfs -mkdir intro-to-hadoop
$ hdfs dfs -ls .