How div-s-1812/da_practical9_mapreduce works
This is a small MapReduce word-count example, despite the inverted-index filename: it splits input lines into words, counts occurrences, then displays the results as a Pandas table and chart. The script configures and runs an mrjob job over inputtext1.txt; the framework dispatches to the mapper and reducer. The excerpts show result parsing and plotting, but not mrjob’s internal dispatch, so those framework links are marked unverified.
Main entry points: MapReduce_InvertedIndex.py Job script · inputtext1.txt Input text
Components 8
Other components
- User
- Job script
MapReduce_InvertedIndex.py - Input text
inputtext1.txt - mrjob runtime
- Word mapper
MapReduce_InvertedIndex.py - Count reducer
MapReduce_InvertedIndex.py - Count table
- Word chart
Connections 7
- User → Job script: runs
MapReduce_InvertedIndex.py - Job script → Input text: selects input
MapReduce_InvertedIndex.py - Job script → mrjob runtime: runs job
MapReduce_InvertedIndex.py - mrjob runtime → Word mapper: dispatches
- mrjob runtime → Count reducer: dispatches
- Job script → Count table: builds table
MapReduce_InvertedIndex.py - Job script → Word chart: saves chart
MapReduce_InvertedIndex.py