Usage ./graph.sh
It requires having gnuplot installed
Usage ./graph.sh
It requires having gnuplot installed
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net/http" | |
| "os" | |
| "strings" | |
| "time" |
| FROM centos:7 | |
| RUN mkdir -p /tmp/nginx /root/rpmbuild/RPMS/x86_64/ | |
| ADD build.sh /tmp/nginx/ | |
| WORKDIR /tmp/nginx | |
| CMD /tmp/nginx/build.sh |
Job de map reduce para contar la cantidad de repeticiones de cada palabra en un texto.
Modo de uso:
cat texto.txt | ./mapper.py | sort | ./reducer.py
Puede agregarse al final `` cat texto.txt | ./mapper.py | sort | ./reducer.py | sort -r -n -k2 > out.txt