Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.
/ map-reduce Public archive

Implementation of Map-Reduce using Docker and FastAPI (Python)

License

Notifications You must be signed in to change notification settings

jay-tau/map-reduce

Repository files navigation

map-reduce

Steps to run

  1. ./build.sh
  2. ./count.sh

How to cleanup?

./clean.sh

About the project

  • Uses map-reduce to count the number of words in a set of text files
  • Uses a single container, which uses an environment variable to run a mapper or a reducer
  • Creates 9 mappers, each of which exposes a FastAPI endpoint, which when queried writes out data/counts/{i}.json
  • The reducer queries each of the mappers on the FastAPI endpoints, and creates data/counts/total_count.json, which is the sum of all data/counts/{i}.json

About

Implementation of Map-Reduce using Docker and FastAPI (Python)

Resources

License

Stars

Watchers

Forks