Skip to content

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

License

Notifications You must be signed in to change notification settings

Vasile2k/ReduceMyMap

Repository files navigation

ReduceMyMap

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

Prerequisities

Usage

This should be obvious, but build the application and run the application you just built. The program should receive 2 arguments:

  • -i /path/to/input to tell the program where to read files from
  • -o /path/to/output to tell the program where to write files to

A temporary directory will also be created, but you should live with the idea that you can't change that easily.

The program will loop through all files in the directory, read them and apply the mapping to each one.

Description

Pseudocode for whatever the fuck happens here:

Master:
initTaskList();
while not done:
	checkForAvailableSlaves();
	if nextTask is barrier:
		waitForAllSlavesToFinish();
	sendJobsToSlaves();
killAllSlaves();
Servant:
while not done:
	tellMasterImNotBusy();
	getNextJob();
	if nextJob is map:
		map(document);
	if nextJob is reduce:
		reduce(letter);
	if nextJob is finish:
		die();

License

Additional details

Contact

You can find me here to ask questions.

About

A MPI-based map-reduce program designed to take in some documents and to output frequency of words in every document.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages